- 25 Nov, 2005 1 commit
-
-
Tom Lane authored
a TupleTableSlot: instead of calling ExecClearTuple, inline the needed operations, so that we can avoid redundant steps. In particular, when the old and new tuples are both on the same disk page, avoid releasing and re-acquiring the buffer pin --- this saves work in both the bufmgr and ResourceOwner modules. To make this improvement actually useful, partially revert a change I made on 2004-04-21 that caused SeqNext et al to call ExecClearTuple before ExecStoreTuple. The motivation for that, to avoid grabbing the BufMgrLock separately for releasing the old buffer and grabbing the new one, no longer applies. My profiling says that this saves about 5% of the CPU time for an all-in-memory seqscan.
-
- 24 Nov, 2005 2 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
< > o Add -f to pg_dumpall
-
- 23 Nov, 2005 4 commits
-
-
Tom Lane authored
generate their output tuple descriptors from their target lists (ie, using ExecAssignResultTypeFromTL()). We long ago fixed things so that all node types have minimally valid tlists, so there's no longer any good reason to have two different ways of doing it. This change is needed to fix bug reported by Hayden James: the fix of 2005-11-03 to emit the correct column names after optimizing away a SubqueryScan node didn't work if the new top-level plan node used ExecAssignResultTypeFromOuterPlan to generate its tupdesc, since the next plan node down won't have the correct column labels.
-
Tom Lane authored
a SubLink expression into a rule query. Pre-8.1 we essentially did this unconditionally; 8.1 tries to do it only when needed, but was missing a couple of cases. Per report from Kyle Bateman. Add some regression test cases covering this area.
-
Tatsuo Ishii authored
per David Fetter
-
Bruce Momjian authored
Remove pgbench comment that was causing problems.
-
- 22 Nov, 2005 13 commits
-
-
Bruce Momjian authored
> o -Allow NULLs in arrays
-
Bruce Momjian authored
> > * Add estimated_count(*) to return an estimate of COUNT(*) > > This would use the planner ANALYZE statistatics to return an estimated > count.
-
Tom Lane authored
protected comment with dashes the first time round.)
-
Bruce Momjian authored
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Andrew Dunstan authored
DROP DATABASE IF EXISTS variant
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Teodor Sigaev authored
-
- 21 Nov, 2005 7 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Teodor Sigaev authored
-
Alvaro Herrera authored
process of dropping roles by dropping objects owned by them and privileges granted to them, or giving the owned objects to someone else, through the use of the data stored in the new pg_shdepend catalog. Some refactoring of the GRANT/REVOKE code was needed, as well as ALTER OWNER code. Further cleanup of code duplication in the GRANT code seems necessary. Implemented by me after an idea from Tom Lane, who also provided various kind of implementation advice. Regression tests pass. Some tests for the new functionality are also added, as well as rudimentary documentation.
-
Teodor Sigaev authored
- supports multibyte encodings - more strict rules for lexemes - flex isn't used Add: - tsquery plainto_tsquery(text) Function makes tsquery from plain text. - &&, ||, !! operation for tsquery for combining tsquery from it's parts: 'foo & bar' || 'asd' => 'foo & bar | asd'
-
- 20 Nov, 2005 3 commits
-
-
Tom Lane authored
-
Tom Lane authored
the convenience of tuptoaster.c and is no longer needed, so may as well get rid of some small amount of overhead.
-
Tom Lane authored
tuple in-place, but instead passes back an all-new tuple structure if any changes are needed. This is a much cleaner and more robust solution for the bug discovered by Alexey Beschiokov; accordingly, revert the quick hack I installed yesterday. With this change, HeapTupleData.t_datamcxt is no longer needed; will remove it in a separate commit in HEAD only.
-
- 19 Nov, 2005 6 commits
-
-
Tom Lane authored
doing heap_insert or heap_update, wipe out any extracted fields in the TupleTableSlot containing the tuple, because they might not be valid anymore if tuptoaster.c changed the tuple. Safe because slot must be in the materialized state, but mighty ugly --- find a better answer!
-
Tom Lane authored
not only the array contents, before claiming two arrays are equal. Per recent discussion.
-
Andrew Dunstan authored
DROP objecttype IF EXISTS for the following objects: table view index sequence schema type domain conversion
-
Tom Lane authored
more tests than strictly necessary, but did not feel like tracing call paths in detail ...
-
Tom Lane authored
be useful to actually do something with nulls, rather than reject them, but I'll just close the hole for now.
-
Tom Lane authored
the array (for array_push) or higher-dimensional array (for array_cat) rather than decrementing it as before. This avoids generating lower bounds other than one for any array operation within the SQL spec. Per recent discussion. Interestingly, this seems to have been the original behavior, because while updating the docs I noticed that a large fraction of relevant examples were *wrong* for the old behavior and are now right. Is it worth correcting this in the back-branch docs?
-
- 18 Nov, 2005 4 commits
-
-
Tom Lane authored
recursed twice on its first argument, leading to exponential time spent on a deep nest of COALESCEs ... such as a deeply nested FULL JOIN would produce. Per report from Matt Carter.
-
Andrew Dunstan authored
translate undef to NULL for result arrayref, now that we allow NULLs in arrays. Update plperl regression test accordingly.
-
Alvaro Herrera authored
-
Neil Conway authored
-