summaryrefslogtreecommitdiff
path: root/src/backend
AgeCommit message (Collapse)Author
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-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-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-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-27Small patch to move get_grosysid() from catalog/aclchk.c toNeil Conway
utils/cache/lsyscache.c where it can be used by other things. Also cleans up both get_usesysid() and get_grosysid() a bit. From Stephen Frost.
2005-01-27Change heap_modifytuple() to require a TupleDesc rather than aNeil Conway
Relation. Patch from Alvaro Herrera, minor editorializing by Neil Conway.
2005-01-27Provide a more descriptive error message when the return type of an SRFNeil Conway
does not match what the query expected. From Brendan Jurd, minor editorializing by Neil Conway.
2005-01-27Generalize TRUNCATE to support truncating multiple tables in oneTom Lane
command. This is useful because we can allow truncation of tables referenced by foreign keys, so long as the referencing table is truncated in the same command. Alvaro Herrera
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-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-24Fix ALTER TABLE ADD COLUMN so that constraints of domain types areTom Lane
enforced properly when there is no explicit default value for the new column. Per report from Craig Perras.
2005-01-24Disallow LOAD to non-superusers. Per report from John Heasman.Tom Lane
2005-01-24Fix memory leak in rtdosplit, per report from Clive Page.Tom Lane
2005-01-23The result of a FULL or RIGHT join can't be assumed to be sorted by theTom Lane
left input's sorting, because null rows may be inserted at various points. Per report from Ferenc Lutischá¸n.
2005-01-19Refactor transformExpr() by creating separate functions for most of theNeil Conway
expression types.
2005-01-18This patch makes some improvements to the rtree index implementation:Neil Conway
(1) Keep a pin on the scan's current buffer and mark buffer. This avoids the need to do a ReadBuffer() for each tuple produced by the scan. Since ReadBuffer() is expensive, this is a significant win. (2) Convert a ReleaseBuffer(); ReadBuffer() pair into ReleaseAndReadBuffer(). Surely not a huge win, but it saves a lock acquire/release... (3) Remove a bunch of duplicated code in rtget.c; make rtnext() handle both the "initial result" and "subsequent result" cases. (4) Add support for index tuple killing (5) Remove rtscancache(): it is dead code, for the same reason that gistscancache() is dead code (an index scan ought not be invoked with NoMovementScanDirection). The end result is about a 10% improvement in rtree index scan perf, according to contrib/rtree_gist/bench.
2005-01-18Replace the use of "0" with "NULL" where appropriate in dllist.c, forNeil Conway
good style and to satisfy sparse. From Alvaro Herrera.
2005-01-17Translation updatesPeter Eisentraut
2005-01-17Translation updatesPeter Eisentraut
2005-01-17Translation updatesPeter Eisentraut
2005-01-17Fix format string error.Peter Eisentraut
2005-01-17Translation updatesPeter Eisentraut
2005-01-14postgres -boot would print the wrong program name in event of aTom Lane
failure in SelectConfigFiles(). Cosmetic issue, but ...
2005-01-14Update obsolete comment, per Alvaro.Tom Lane
2005-01-13Translation updatesPeter Eisentraut
2005-01-13get_names_for_var didn't do recursion for unnamed JOIN vars quite right;Tom Lane
got it wrong when the JOIN was in an outer query level. Per example from Laurie Burrow. Also fix same issue in markTargetListOrigin. I think the latter is only a latent bug since we currently don't apply markTargetListOrigin except at the outer level ... but should do it right anyway.
2005-01-13Remove unportable assumption that it's okay to use the target bufferTom Lane
of an sprintf() as a source string. Demonstrably does not work with recent gcc and/or glibc on some platforms.
2005-01-12Add conditional inclusion of <com_err.h> to support old 'heimdal'Tom Lane
version of Kerberos. Per report from Reinhard Max.
2005-01-12Re-allow an untyped literal as the test expression of a CASE, ieTom Lane
CASE 'a' WHEN 'a' THEN 1 ELSE 2 END. This worked in 7.4 and before but had been broken due to premature freezing of the type of the test expression. Per gripe from GÄbor SzÃcs.
2005-01-12Increase MAXLISTEN to a more generous value, and add an error messageTom Lane
telling when it has been exceeded. Per trouble report from Jean-GÅrard Pailloncy.
2005-01-11interval_out failed to mention 'ago' for negative intervals in SQL andTom Lane
GERMAN datestyles. Ancient bug reported by Terry Lee Tucker.
2005-01-10Separate the functions of relcache entry flush and smgr cache entry flushTom Lane
so that we can get the size of a shared inval message back down to what it was in 7.4 (and simplify the logic too). Phase 2 of fixing the 'SMgrRelation hashtable corrupted' problem.
2005-01-10Phase 1 of fix for 'SMgrRelation hashtable corrupted' problem. ThisTom Lane
is the minimum required fix. I want to look next at taking advantage of it by simplifying the message semantics in the shared inval message queue, but that part can be held over for 8.1 if it turns out too ugly.
2005-01-10Translation updatesPeter Eisentraut
2005-01-09Undo an unadvertised change in the API of pg_atoi. In all previousTom Lane
releases, a nonzero 'c' argument meant that the input string could be terminated by either that character or \0. Recent refactoring broke that, causing the thing to scan for 'c' only. This went undetected because no part of the main code actually passes nonzero 'c'. However it broke tsearch2 and possibly other user-written code that assumed the old definition. Per report from Tom Hebbron.
2005-01-09Translation updatesPeter Eisentraut
2005-01-09New translationPeter Eisentraut
2005-01-08Consistently use geteuid() not getuid(); there were a few places deviatingTom Lane
from our long-established standard.
2005-01-07Improve comments in sample config files.Tom Lane
2005-01-06Adjust lookup of client-side profile files (.pgpass and so on) as perTom Lane
discussion on pgsql-hackers-win32 list. Documentation still needs to be tweaked --- I'm not sure how to refer to the APPDATA folder in user documentation.
2005-01-06Translation updatesPeter Eisentraut
2005-01-06Translation updatesPeter Eisentraut
2005-01-04Translation updatePeter Eisentraut
2005-01-04Fix typoPeter Eisentraut
2005-01-03Translation updatesPeter Eisentraut
2005-01-03Repair bufmgr deadlock problem reported by Michael Wildpaner. Must takeTom Lane
share lock on a buffer being written out before releasing BufMgrLock in the BufferAlloc code path; if we do it later we might block on someone who's re-pinned the buffer. I believe this is only an issue for BufferAlloc and not the other places that call FlushBuffer. BufferSync must continue to do it the old way since it may well be trying to write buffers that other backends have pinned; but it should not be holding any conflicting locks. FlushRelationBuffers is okay since it's got exclusive lock at the relation level.
2005-01-01Adjust a few more copyright notices to match the format expected byTom Lane
the src/tools/copyright script.
2005-01-01Some more missed copyright notices. Many of these look like theyTom Lane
should have been caught by the src/tools/copyright script ... why weren't they?