summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-12-14Fix typoPeter Eisentraut
2004-12-14Prevent pg_resetxlog from being run as root. If this is allowed, someNeil Conway
root-owned files will be written to the data directory, leaving it in an unusable state.
2004-12-13New translationPeter Eisentraut
2004-12-13Translation updatesPeter Eisentraut
2004-12-13Clearify which version numbers are bumped for major and minor releases.Bruce Momjian
2004-12-13New translationsPeter Eisentraut
2004-12-13Translation updatesPeter Eisentraut
2004-12-13Avoid generating excess (and illegal) parentheses around an aliased JOINTom Lane
in prettyprint mode. Andreas Pflug
2004-12-12Add regression tests for the fix committed by Tom for casting betweenNeil Conway
the row types of parent/child tables.
2004-12-12PREPARE and EXPLAIN need to copy the source query just like we recentlyTom Lane
had to do in DECLARE CURSOR. AFAICS these are all the places affected. PREPARE case per example from Michael Fuhr, EXPLAIN case located by grepping for planner calls ...
2004-12-12Add missing newlines at end of error messages.Peter Eisentraut
2004-12-12Translation updatesPeter Eisentraut
2004-12-12Fix problems with certain shells (e.g., FreeBSD, Cygwin) clearing thePeter Eisentraut
exit status in multiline traps.
2004-12-12Upgrade formrdesc() so that it can correctly initialize the tupledescTom Lane
(rd_att) field of a nailed-in-cache relcache entry. This fixes the bug reported by Alvaro 8-Dec-2004; I believe it probably also explains Grant Finnemore's report of 10-Sep-2004. In an unrelated change in the same file, put back 7.4's response to failure to rename() the relcache init file, ie, unlink the useless temp file. I did not put back the warning message, since there might actually be some reason not to have that.
2004-12-11Instead of supposing (wrongly, in the general case) that the rowtypeTom Lane
of an inheritance child table is binary-compatible with the rowtype of its parent, invent an expression node type that does the conversion correctly. Fixes the new bug exhibited by Kris Shannon as well as a lot of old bugs that would only show up when using multiple inheritance or after altering the parent table.
2004-12-11Translation updatesPeter Eisentraut
2004-12-11Translation updatesPeter Eisentraut
2004-12-11Translation updatesPeter Eisentraut
2004-12-11Translation updatesPeter Eisentraut
2004-12-11Translation updatesPeter Eisentraut
2004-12-11Translation updatesPeter Eisentraut
2004-12-06ActiveSnapshot must be set to something valid while running deferredTom Lane
triggers during COMMIT. Per trouble report from Frank van Vugt.
2004-12-06Translation updatesPeter Eisentraut
2004-12-06Fixed bug in parsing of typedef'ed array sizes.Michael Meskes
Synced parser.
2004-12-06Fix off-by-1 bug in pg_ctl in -D handling, per report from pjmodos@parba.czNeil Conway
2004-12-04Back out addition of Win1252 encoding.Bruce Momjian
2004-12-03As long as we're forcing an ORDER BY in these four join queries, we hadTom Lane
better make sure the sort order is totally specified; else we get burnt by platform-specific behavior of qsort() with equal keys. Per buildfarm results.
2004-12-03Use StrNCpy not strncpy to fill hash key, to ensure the resulting keyTom Lane
is null-terminated. I think this is not a real bug because the parser would always have truncated the identifier to NAMEDATALEN-1 already, but let's be safe. Per report from Klocwork.
2004-12-03Adjust help message for --no-owner, per Alvaro Herrera.Tom Lane
2004-12-03> If it bothers you that much. I'd make a flag, cleared at the start ofBruce Momjian
> each COPY, and then where we test for CR or LF in CopyAttributeOutCSV, > if the flag is not set then set it and issue the warning. Andrew Dunstan
2004-12-03Fix compile breakage from SIGPIPE fix for threading.Bruce Momjian
2004-12-03Back out fix for Unicode characters above 0x10000Bruce Momjian
2004-12-02Code review for recent libpq changes. Be more careful about errorTom Lane
handling in SIGPIPE processing; avoid unnecessary pollution of application link-symbol namespace; spell 'pointer to function' in the conventional way.
2004-12-02> I have installed your patch and adjusted the names of the standardsBruce Momjian
> throughout to the spellings suggested by your book. Great. A follow-up patch for current CVS HEAD is attached, and available at http://troels.arvin.dk/db/pgsql/conformance/pgsql-sql-conformance- followup.patch The patch - includes a core feature ID that had been left out by mistake (C011) - updates the sql_feature_packages.txt table to reflect changes in SQL:2003 which were not covered properly in my last patch Troels Arvin
2004-12-02> I enclose a short patch to reduce the PGARCH_RESTART_INTERVAL from 60Bruce Momjian
> seconds to 10 seconds. The original number was plucked from thin air > some months ago, and I'd like to review that now based upon further > thought, observation and experience. > > This change has little or no effect on performance, since the interval > is there mainly to avoid repeated respawn attempts if archiver fails at > startup. Archiver start-up time is very quick, so there is little danger > of exceeding 10 seconds. > > On a busy system, if the archiver does die, then many files can build up > in the 60 seconds before respawning. That xlog file backlog could take > some time to clear. This then leaves a larger than normal window of data > loss for a possibly long period. > > It's a minor change only, with no other effect on function. Simon Riggs
2004-12-02Fix for Unicode characters above 0x10000.Bruce Momjian
John Hansen
2004-12-02On win32, there is currently no way to get the equivalent function ofBruce Momjian
the "ps" argument list on Unix - meaning that there is no way to identify for example the stats processors or the bgwriter. This patch adds this functionality, in a bit of a crufty way. It creates a kernel Event object with the name of what would be in the title. This can be viewed using for example Process Explorer. It's been very handy for me during both debugging and using. I haven't figured a better way, but perhaps someone has one that's less crufty? If not, here is at least a working patch :-) Magnus Hagander
2004-12-02Add Charset WIN1252 support.Bruce Momjian
Roland Volkmann
2004-12-02Change Win32 dlerror message to:Bruce Momjian
return "dynamic loading error";
2004-12-02Disallow the combination VACUUM FULL FREEZE for safety's sake, for theTom Lane
reasons I outlined in pghackers a few days ago. Also, undo someone's overly optimistic decision to reduce tuple state checks from if (...) elog() to Asserts. If I trusted this code more, I might think it was a good idea to disable these checks in production installations. But I don't.
2004-12-02Don't bother adding to cflags/cppflags, just set them because configureBruce Momjian
handles that, and make solaris debug use no optimization.
2004-12-02Rework libpq threaded SIGPIPE handling to avoid interference withBruce Momjian
calling applications. This is done by blocking sigpipe in the libpq thread and using sigpending/sigwait to possibily discard any sigpipe we generated.
2004-12-02Teach regex_fixed_prefix() the correct handling of advanced regexTom Lane
escapes --- they aren't simply quoted characters. Problem noted by Antti Salmela. Also fix problem with incorrect handling of multibyte characters when followed by a quantifier.
2004-12-02Make some adjustments to reduce platform dependencies in plan selection.Tom Lane
In particular, there was a mathematical tie between the two possible nestloop-with-materialized-inner-scan plans for a join (ie, we computed the same cost with either input on the inside), resulting in a roundoff error driven choice, if the relations were both small enough to fit in sort_mem. Add a small cost factor to ensure we prefer materializing the smaller input. This changes several regression test plans, but with any luck we will now have more stability across platforms.
2004-12-01Allow libpq to build on MS Visual Studio .NET 2003 on Windows XP.Bruce Momjian
2004-12-01Fix timestamptz_age() to do calculation in local timezone not GMT, per bug 1332.Tom Lane
2004-12-01Change planner to use the current true disk file size as its estimate ofTom Lane
a relation's number of blocks, rather than the possibly-obsolete value in pg_class.relpages. Scale the value in pg_class.reltuples correspondingly to arrive at a hopefully more accurate number of rows. When pg_class contains 0/0, estimate a tuple width from the column datatypes and divide that into current file size to estimate number of rows. This improved methodology allows us to jettison the ancient hacks that put bogus default values into pg_class when a table is first created. Also, per a suggestion from Simon, make VACUUM (but not VACUUM FULL or ANALYZE) adjust the value it puts into pg_class.reltuples to try to represent the mean tuple density instead of the minimal density that actually prevails just after VACUUM. These changes alter the plans selected for certain regression tests, so update the expected files accordingly. (I removed join_1.out because it's not clear if it still applies; we can add back any variant versions as they are shown to be needed.)
2004-11-30Add \n to end of output for psql \s with no history file name.Bruce Momjian
This prevents the next psql prompt from showing up on the end of the last history line.
2004-11-30Quote SHELL arguments only on Win32.Bruce Momjian
2004-11-30Fix a few typos in comments.Neil Conway