summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-11-10List VALUE as a keyword.Michael Meskes
2004-11-09Allow planner to fold "stable" functions to constants when formingTom Lane
selectivity estimates, per recent discussion.
2004-11-09Put in place some defenses against being fooled by accidental match ofTom Lane
shared memory segment ID. If we can't access the existing shmem segment, it must not be relevant to our data directory. If we can access it, then attach to it and check for an actual match to the data directory. This should avoid some cases of failure-to-restart-after-boot without introducing any significant risk of failing to detect a still-running old backend.
2004-11-09Get rid of perror(), substitute some better phrased error messages.Peter Eisentraut
malloc() doesn't set errno, so most uses were buggy anyway.
2004-11-09Translation updatesPeter Eisentraut
2004-11-09Clarify some stringsPeter Eisentraut
2004-11-09Translation updatePeter Eisentraut
2004-11-09Clarify some error messagesPeter Eisentraut
2004-11-09Translation updatePeter Eisentraut
2004-11-09Delete the `remove-old-headers' target, as it is no longer useful. PatchNeil Conway
from Alvaro Herrera.
2004-11-09Use a hopefully-more-reliable method of detecting default selectivityTom Lane
estimates when combining the estimates for a range query. As pointed out by Miquel van Smoorenburg, the existing check for an impossible combined result would quite possibly fail to detect one default and one non-default input. It seems better to use the default range query estimate in such cases. To do so, add a check for an estimate of exactly DEFAULT_INEQ_SEL. This is a bit ugly because it introduces additional coupling between clauselist_selectivity and scalarltsel/scalargtsel, but it's not like there wasn't plenty already...
2004-11-08Update workding on why we use is_absolute_path() as a macro.Bruce Momjian
2004-11-08Allow win32/cygwin link against the first matching library symbol ratherBruce Momjian
than erroring out. This is the Unix behavior.
2004-11-08Kris Jurka pointed out that the qualified_name production wasn'tTom Lane
working as intended --- for some reason, FROM a.b.c was getting parsed as if it were a function name and not a qualified name. I think there must be a bug in bison, because it should have complained that the grammar was ambiguous. Anyway, fix it along the same lines previously used for func_name vs columnref, and get rid of the right-recursion in attrs that seems to have confused bison.
2004-11-08Fix unportable code in SockAddr_cidr_mask: you can't assume thatTom Lane
shifting left by full word width gives zero. Per bug report from Tyson Thomson.
2004-11-07New translationPeter Eisentraut
2004-11-07Translation updatePeter Eisentraut
2004-11-07Translation updatesPeter Eisentraut
2004-11-07Removes duplicate slashes from the path in canonicalize_path(). ItBruce Momjian
preserve double leading slashes on Win32. e.g. ////a////b => /a/b
2004-11-06Add code to find_my_exec() to resolve a symbolic link down to theTom Lane
actual executable location. This allows people to continue to use setups where, eg, postmaster is symlinked from a convenient place. Per gripe from Josh Berkus.
2004-11-06Simplify relative-path logic, on the assumption that compiled-in pathsTom Lane
won't have trivial differences in their common prefix.
2004-11-06Update pg_dump to use SET DEFAULT_TABLESPACE instead of explicitTom Lane
tablespace clauses; this should improve compatibility of dump files. Philip Warner, some rework by Tom Lane.
2004-11-06Remove directory from cmd.exe default shell.Bruce Momjian
2004-11-06When implementing a coercion to a domain type with a combinedTom Lane
type-and-length coercion function, make sure that the coercion function is told the correct typmod. Fixes Kris Jurka's example of a domain over bit(N).
2004-11-06Now that we advertize only CIDR address in pg_hba.conf, removeBruce Momjian
duplicates sample entries from comments.
2004-11-06Variable initializer no longer necessary.Bruce Momjian
2004-11-06Tests for COMSPEC in the right place and supply a reasonable shellBruce Momjian
default on Win32.
2004-11-06Fix sizeof(EXE) arithmetic, per Andrew Dunstan.Tom Lane
2004-11-06Code cleanup in path.c and exec.c. Handle Windows drive and network specsTom Lane
everywhere not just some places, get rid of . and .. when joining path sections together. This should eliminate most of the ugly paths like /foo/bar/./baz that we've been generating.
2004-11-05pred_test() logic was being too narrow-minded about where it might findTom Lane
RestrictInfo nodes in the query expression. Per example from James Robinson.
2004-11-05Create 'default_tablespace' GUC variable that supplies a TABLESPACETom Lane
clause implicitly whenever one is not given explicitly. Remove concept of a schema having an associated tablespace, and simplify the rules for selecting a default tablespace for a table or index. It's now just (a) explicit TABLESPACE clause; (b) default_tablespace if that's not an empty string; (c) database's default. This will allow pg_dump to use SET commands instead of tablespace clauses to determine object locations (but I didn't actually make it do so). All per recent discussions.
2004-11-05Small message clarificationsPeter Eisentraut
2004-11-05Translation updatePeter Eisentraut
2004-11-04Fix psql \e and \! for Win32.Bruce Momjian
2004-11-04Minor documentation updates from Simon Riggs.Tom Lane
2004-11-03Don't create $DESTDIR/include/internal/lib, as it is no longer used.Neil Conway
2004-11-02Tab completion for CREATE TABLESPACE arguments. Patch by Joachim Wieland.Peter Eisentraut
2004-11-02Translation updatesPeter Eisentraut
2004-11-02Translation updatesPeter Eisentraut
2004-11-02Add comment to postmaster.c that get_progname() will call exit if itBruce Momjian
can't strdup().
2004-11-02Add comment about memory failure of get_progname exiting the postmaster:Bruce Momjian
exit(1); /* This could exit the postmaster */
2004-11-01timestamptz_trunc() should only recalculate the timezone when truncatingTom Lane
to DAY precision or coarser; leave the timezone alone when precision is HOUR or less. This avoids surprises for inputs near a DST transition time, as per example from Matthew Gabeler-Lee. (The only reason we recalculate at all is so that outputs that are supposed to represent days will come out as local midnight, and that's not relevant for sub-day precision.)
2004-11-01Invent pg_next_dst_boundary() and rewrite DetermineLocalTimeZone() toTom Lane
use it, as per my proposal of yesterday. This gives us a means of determining the zone offset to impute to an unlabeled timestamp that is both efficient and reliable, unlike all our previous tries involving mktime() and localtime(). The behavior for invalid or ambiguous times at a DST transition is fixed to be really and truly "assume standard time", fixing a bug that has come and gone repeatedly but was back again in 7.4. (There is some ongoing discussion about whether we should raise an error instead, but for the moment I'll make it do what it was previously intended to do.)
2004-11-01That's just the lovely way windows handles a "segfault". Gotta be reallyBruce Momjian
interesting for MS to catch all those dumps... Anyway. Oops. Seems I ran my regression tests with the old psql, and just managed to update the backend, when I tested that patch. Turns out there are codepaths where we'd access the Critical Section before it was initialized. Attached patch breaks the initializeation off to a separate part and adds that one to a much earlier position in the program. Magnus Hagander
2004-11-01Update comment to point to proper file.Bruce Momjian
2004-11-01fixed bug in segfault REVOKE statementDave Cramer
2004-11-01Adjust use of sizeof(EXE).Bruce Momjian
2004-11-01Clarify coding of .exe patchBruce Momjian
2004-10-31Use psql -q option instead of 2>/dev/null during first invocationTom Lane
of psql; this should make it easier to diagnose client-side problems, such as library version mismatch. Also, consistently use -X option to avoid problems from weird .psqlrc settings.
2004-10-30Invent a new, more thread-safe version of PQrequestCancel, called PQcancel.Tom Lane
Use this new function in psql. Implement query cancellation in psql for Windows. Code by Magnus Hagander, documentation and minor editorialization by Tom Lane.