summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
2004-10-30I found a corner case in which it is possible for RI_FKey_check's callTom Lane
of HeapTupleSatisfiesItself() to trigger a hint-bit update on the tuple: if the row was updated or deleted by a subtransaction of my own transaction that was later rolled back. This cannot occur in pre-8.0 of course, so the hint-bit patch applied a couple weeks ago is OK for existing releases. But for 8.0 it seems we had better fix things so that RI_FKey_check can pass the correct buffer number to HeapTupleSatisfiesItself. Accordingly, add fields to the TriggerData struct to carry the buffer ID(s) for the old and new tuple(s). There are other possible solutions but this one seems cleanest; it will allow other AFTER-trigger functions to safely do tqual.c calls if they want to. Put new fields at end of struct so that there is no API breakage.
2004-10-30Change COMMIT back to the old behavior of emitting command tag COMMIT,Tom Lane
not ROLLBACK, for the case of COMMIT outside a transaction block. Alvaro Herrera
2004-10-30Translation updatePeter Eisentraut
2004-10-29Rearrange order of pre-commit operations: must close cursors before doingTom Lane
ON COMMIT actions. Per bug report from Michael Guerin.
2004-10-29No need to set errorMessage length --- already set in goto target.Bruce Momjian
2004-10-29Fix failure to think clearly about encoding conversion errors in COPY.Tom Lane
We can't regurgitate the unconverted string as I first thought, because the elog.c mechanisms will assume the error message data is in the server encoding and attempt a reverse conversion. Eventually it might be worth providing a short-circuit path to support this, but for now the simplest solution is to abandon trying to report back the line contents after a conversion failure. Per bug report from Sil Lee, 27-Oct-2004.
2004-10-29Set errorMessage length in PQrequestCancel() in all places.Bruce Momjian
2004-10-29Add DEBUG1-level logging of checkpoint start and end. Also, reduce theTom Lane
'recycled log files' and 'removed log files' messages from DEBUG1 to DEBUG2, replacing them with a count of files added/removed/recycled in the checkpoint end message, as per suggestion from Simon Riggs.
2004-10-28Code cleanup in dirmod.c. Andrew Dunstan, some further mods by moi.Tom Lane
2004-10-28Fix to_number for the case of a trailing S.Tom Lane
Karel Zak
2004-10-28Translation updatePeter Eisentraut
2004-10-28Translation updatesPeter Eisentraut
2004-10-28Translation updatesPeter Eisentraut
2004-10-28Use AllocateFile(), FreeFile() and palloc() rather than fopen(), fclose()Neil Conway
and malloc() in pgstat.c, respectively. This simplifies error recovery, as well as being more consistent with the rest of the backend.
2004-10-28On Windows, force a checkpoint just before dropping a database's physicalTom Lane
files and directories. This ensures that the bgwriter will close any open file references it is holding for files therein, which is needed for the rmdir() to succeed. Andrew Dunstan and Tom Lane.
2004-10-27Have pg_ctl status always output to stdout, even stopped status, not stderr.Bruce Momjian
2004-10-27Fix Cygwin compile for timezone.Bruce Momjian
2004-10-27When displaying a Var that is a reference to a column of an unnamed join,Tom Lane
try to display it as a reference to the underlying column instead. This is a legitimate substitution (it wouldn't be for a named join) and it fixes some cases where the display would otherwise be ambiguous. Per example from Sim Zacks.
2004-10-27Canonicalize Win32 path coming in from pg_ctl -D, idea from Magnus.Bruce Momjian
2004-10-27Translation updatePeter Eisentraut
2004-10-27Add a missing dependency: the "install" target requires "all" to haveNeil Conway
been built before it. Per report from Kris Jurka.