summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-03-18Added patch by Christof Petig <christof@petig-baender.de> to work around gcc ↵Michael Meskes
bug on powerpc and amd64.
2005-03-18Need to release buffer pins before attempting to drop files duringTom Lane
backend exit. Per report from Bruce.
2005-03-18Treat EPERM as a non-error case when checking to see if old postmasterTom Lane
is still alive. This improves our odds of not getting fooled by an unrelated process when checking a stale lock file. Other checks already in place, plus one newly added in checkDataDir(), ensure that we cannot attempt to usurp the place of a postmaster belonging to a different userid, so there is no need to error out. Add comments indicating the importance of these other checks.
2005-03-17Backpatch to 8.0.X, already in HEAD:Bruce Momjian
Allow Win32 to support the O_SYNC open flag as an wal_sync_method method.
2005-03-16Add missing include for new lc_ctype_is_c() function.Bruce Momjian
Per Neil.
2005-03-16Prevent locale-aware handling of upper, lower, and initcap when theBruce Momjian
locale is C. Backpatch to 8.0.X because some operating systems were throwing errors for such operations, rather than ignoring the locale when it was C.
2005-03-13Increment all major version numbers in 8.0.X to force recompile ofBruce Momjian
client aplications so 7.4.X releases can be installed on the same machine as 8.0.X.
2005-03-12Fix ALTER DATABASE RENAME to allow the operation if user is a superuserTom Lane
who for some reason isn't marked usecreatedb. Per report from Alexander Pravking. Also fix sloppy coding in have_createdb_privilege().
2005-03-12Fix problem with infinite recursion between write_syslogger_file andTom Lane
elog if the former has trouble writing its file. Code review for Magnus' patch to redirect stderr to syslog on Windows (Bruce's version seems right, but did some minor prettification). Backpatch both changes to 8.0 branch.
2005-03-07Properly implement "Response files" for bcc. Add URL's to describe theBruce Momjian
feature for Win32 and bcc.
2005-03-03Replace ARC cache management algorithm with the similar but slightlyTom Lane
simpler 2Q algorithm, to avoid possible problems with the pending patent on ARC. Testing so far suggests that there is little if any performance loss from doing this. Note that this patch is going into the 8.0 branch only; a much more extensive revision is planned for HEAD.
2005-03-01Release proclock immediately in RemoveFromWaitQueue() if it representsTom Lane
no held locks. This maintains the invariant that proclocks are present only for procs that are holding or awaiting a lock; when this is not true, LockRelease will fail. Per report from Stephen Clouse.
2005-03-01Adjust OR indexscan logic to not generate redundant condition-free ORTom Lane
indexscans involving partial indexes. These would always be dominated by a simple indexscan on such an index, so there's no point in considering them. Fixes overoptimism in a patch I applied last October.
2005-03-01Revert the logic for expanding AND/OR conditions in pred_test() to whatTom Lane
it was in 7.4, and add some comments explaining why it has to be this way. I broke it for OR'd index predicates in a fit of code cleanup last summer. Per example from Sergey Koshcheyev.
2005-02-27Tab indent all actions in bcc32.mak, and do it on win32.mak too forBruce Momjian
consistency. Backpatch only bcc32.mak to 8.0.X.
2005-02-25Add linking from /port to bcc makefile.Bruce Momjian
2005-02-21Try to get Borland CC to compile.Bruce Momjian
Backpatch to 8.0.X which doesn't work right now.
2005-02-19New arrangement to always let the bgwriter do checkpoints brokeTom Lane
CHECKPOINT and some other commands in the context of a standalone backend. Allow a standalone backend to do its own checkpoints.
2005-02-19Ensure that the resolved datatype of any unknown Param is propagatedTom Lane
into the sub-SELECT targetlist when it appears in the context INSERT INTO foo SELECT $1 ... Per report from Abhijit Menon-Sen.
2005-02-14ALTER LANGUAGE RENAME has never worked. Per Sergey Yatskevich.Tom Lane
2005-02-13Print file name and errno string on rmtree failure.Bruce Momjian
Backpatch to 8.0.X.
2005-02-11Translation updatesPeter Eisentraut
2005-02-10Fix SPI cursor support to allow scanning the results of utility commandsTom Lane
that return tuples (such as EXPLAIN). Per gripe from Michael Fuhr. Side effect: fix an old bug that unintentionally disabled backward scans for all SPI-created cursors.
2005-02-10Fixed more parsing bugs in other CREATE statements.Michael Meskes
2005-02-09ALTER TABLE ADD COLUMN exhibits a significant memory leak when adding aNeil Conway
column with a default expression. In that situation, we need to rewrite the heap relation. To evaluate the new default expression, we use ExecEvalExpr(); however, this can allocate memory in the current memory context, and ATRewriteTable() does not switch out of the active portal's heap memory context. The end result is a rather large memory leak (on the order of gigabytes for a reasonably sized table). This patch changes ATRewriteTable() to switch to the per-tuple memory context before beginning the per-tuple loop. It also removes an explicit heap_freetuple() in the loop, since that is no longer needed. In an unrelated change, I noticed the code was scanning through the attributes of the new tuple descriptor for each tuple of the old table. I changed this to use precomputation, which should slightly speed up the loop. Thanks to steve@deefs.net for reporting the leak.
2005-02-09Fixed bug in parsing of CREATE AS statement.Michael Meskes
2005-02-08If we're gonna check for array overrun, we really should do so beforeTom Lane
overrunning the array, not after.
2005-02-07Prevent 4 more buffer overruns in the PL/PgSQL parser. This is just aNeil Conway
minimally-invasive fix for stable branches; a cleaner fix will be committed to HEAD soon.
2005-02-06Repair CLUSTER failure after ALTER TABLE SET WITHOUT OIDS. Turns outTom Lane
there are corner cases involving dropping toasted columns in which the previous coding would fail, too: the new version of the table might not have any TOAST table, but we'd still propagate possibly-wide values of dropped columns forward.
2005-02-03Fix minor thinko in logic to set dump order when dumping from a pre-7.3Tom Lane
database: aggregates should be dumped in the same pass as operators, not in the same pass as functions.
2005-02-03Ensure that all details of the ARC algorithm are hidden within freelist.c.Tom Lane
This refactoring does not change any algorithms or data structures, just remove visibility of the ARC datastructures from other source files.
2005-02-02Improve performance of fmgr.c calling routines for cases with more thanTom Lane
two arguments. Per suggestions from A. Ogawa.
2005-02-02Adjust constant-folding of CASE expressions so that the simple comparisonTom Lane
form of CASE (eg, CASE 0 WHEN 1 THEN ...) can be constant-folded as it was in 7.4. Also, avoid constant-folding result expressions that are certainly unreachable --- the former coding was a bit cavalier about this and could generate unexpected results for all-constant CASE expressions. Add regression test cases. Per report from Vlad Marchenko.
2005-02-01Fix a bug induced by the list-rewrite that resulted in incrementing theNeil Conway
command counter more than necessary. Per report from Michael Fuhr.
2005-02-01Adjust estimate_num_groups() to not clamp per-relation group countTom Lane
estimate to less than the number of values estimated for any one grouping Var, as suggested by Manfred. This is intuitively right, and what's more it puts the plan choices in the subselect regression test back the way they were before ...
2005-02-01Adjust plpgsql to allow assignment to an element of an array that isTom Lane
initially NULL. For 8.0 we changed the main executor to have this behavior in an UPDATE of an array column, but plpgsql's equivalent case was overlooked. Per report from Sven Willenberger.
2005-02-01Sync inet formatting code with recent BIND releases. In particular,Tom Lane
fix bug with inconsistent selection of default mask length for "class D" addresses. Per report from Steve Atkins.
2005-01-30Stamp 8.0 branch as 8.0.1.Tom Lane
2005-01-30Translation updatesPeter Eisentraut
2005-01-28When dealing with multiple grouping columns coming from the same table,Tom Lane
clamp the estimated number of groups to table row count over 10, instead of table row count; this reflects a heuristic that people probably won't group over a near-unique set of columns, and the knowledge that we don't currently have any way to estimate the correlation of the columns better than guessing. This change creates a trivial plan change in one of the regression tests.
2005-01-28Improve planner's estimation of the space needed for HashAgg plans:Tom Lane
look at the actual aggregate transition datatypes and the actual overhead needed by nodeAgg.c, instead of using pessimistic round numbers. Per a discussion with Michael Tiemann.
2005-01-28pg_aggregate.h fails to compile standalone, for lack of an #includeTom Lane
defining List.
2005-01-28Adjust mkdir_p to do stat() before trying mkdir(). Avoids problems onTom Lane
Solaris and should be a little faster anyway, since in most scenarios all but perhaps the last path component will already exist.
2005-01-27Check that aggregate creator has the right to execute the transitionTom Lane
functions of the aggregate, at both aggregate creation and execution times.
2005-01-27Backpatch translationsPeter Eisentraut
2005-01-26Close all cursors created during a failed subtransaction. This is neededTom Lane
to avoid problems when a cursor depends on objects created or changed in the same subtransaction. We'd like to do better someday, but this seems the only workable answer for 8.0.1.
2005-01-26Propagate ecpg core dump fix into 8.0 branch.Tom Lane
2005-01-26On Windows, set the postmaster executable's stack size to 4MB, so thatTom Lane
it agrees with the default value of max_stack_depth.
2005-01-26Minor tweak to avoid unnecessary memory bloat when dumping extremely wideTom Lane
column values in -d mode. Per report from Marty Scholes. This doesn't completely solve the issue, because we still need multiple copies of the field value, but at least one copy can be got rid of painlessly ...
2005-01-26Make pg_dump and pg_restore handle binary archive formats correctlyTom Lane
when using stdout/stdin on Windows.