aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* GUC assign hooks that look at external state in deciding whether aTom Lane2004-09-24
| | | | | | | setting is valid must ignore that state and permit the assignment anyway when source is PGC_S_OVERRIDE. Otherwise they may disallow a rollback at transaction abort, which is The Wrong Thing. Per example from Michael Fuhr 12-Sep-04.
* Cleanup some ancient Ultrix / Alpha code in main() that is intended toNeil Conway2004-09-24
| | | | | | modify how unaligned memory accesses are dealt with. Document that this is really what is going on, and merge the NOFIXADE and NOPRINTADE code paths.
* shmdt takes a void* parameter, per Kris Jurka.Tom Lane2004-09-24
|
* Fix gratuitous weirdness in function prototype, per Kris Jurka.Tom Lane2004-09-24
|
* Okay, I'm tired of reading gripes from OS X users ... add a regressionTom Lane2004-09-24
| | | | variant file to cover OS X 10.3's bizarre minus-zero behavior.
* Get rid of /*-inside-comment warning. My fault.Tom Lane2004-09-24
|
* ExecProcAppend() wasn't called ExecAppend() because the latter name wasNeil Conway2004-09-24
| | | | | formerly used in execMain. Since that is no longer the case, this patch renames ExecProcAppend() to ExecAppend() for the sake of consistency.
* Fix TAS assembly stuff for Solaris/386. (I'm not in a position toTom Lane2004-09-24
| | | | actually test this, but it couldn't be broken any worse than it was...)
* Fix ALTER TABLE OWNER to adjust the ownership of dependent sequences,Tom Lane2004-09-23
| | | | not only indexes. Alvaro Herrera, with some kibitzing by Tom Lane.
* If we're going to print unrecognized result codes from SSL_get_errorTom Lane2004-09-23
| | | | | in open_client_SSL, surely we should do it everywhere. Also make message formatting conform to style guide.
* This patch logs the error code in the default case, so that the userBruce Momjian2004-09-23
| | | | | | | stands a chance of looking it up. "Unrecognised error" is always disheartening. :-) Dominic Mitchell
* This patch attempts to note the use of the root.crt file in the server.Bruce Momjian2004-09-23
| | | | | | | | Given that PostgreSQL will output a message complaining about it's absence if you're using SSL mode, I feel it's important that it gets a mention in the documentation at some point. Dominic Mitchell
* Minor tweak to pg_controldata usage information, per suggestion fromNeil Conway2004-09-23
| | | | Dennis Björklund. Also, remove some redundant #include directives.
* Arrange for hash join to skip scanning the outer relation if it detectsTom Lane2004-09-22
| | | | | that the inner one is completely empty. Per recent discussion. Also some cosmetic cleanups in nearby code.
* Issue a CHECKPOINT just after creating the regression database. WithoutTom Lane2004-09-22
| | | | | | | this, it's hard to debug core-dump test failures, because WAL replay will enthusiastically remove the core file (along with the rest of the regression database directory). Per recent discussion, not to mention bitter experience.
* Adjust ExecMakeTableFunctionResult to produce a single all-nulls rowTom Lane2004-09-22
| | | | | | | | when a function that returns a single tuple (not a setof tuple) returns NULL. This seems to be the most consistent behavior. It would have taken a bit less code to make it return an empty table (zero rows) but ISTM a non-SETOF function ought always return exactly one row. Per bug report from Ivan-Sun1.
* Minor cleanup of libpq/LO examples: fix some memory leaks, update a commentNeil Conway2004-09-22
| | | | or two.
* Some improvements for the tab-completion of psql. This shouldNeil Conway2004-09-22
| | | | | | | | | | | | | | | | | | | | address all of the items in the todo list and adds some new things as well. Specifically: * Add support for ALTER SEQUENCE ... * Add "RENAME TO" for ALTER TRIGGER xx ON yy * Pick proper table for ALTER TRIGGER xx ON ... * Support for ALTER USER xxx ... * Fix ALTER GROUP xxx DROP ... * Fix ALTER DOMAIN xxx DROP ... * Remove "OWNER TO" from ALTER DOMAIN xx DROP ... * Fix ALTER DOMAIN xx SET DEFAULT .. * Prevent ALTER INDEX xxx SET TABLESPACE from using "TO" * Support for ALTER LANGUAGE xxx (RENAME TO) * More support for ALTER TABLE xxx ALTER COLUMN xxx ... * More support for COPY Greg Sabino Mullane
* This patch from Alvaro Herrera adds transaction ID to the list ofNeil Conway2004-09-22
| | | | | | log_line_prefix escapes. The escape sequence used for this is %x. %x previously meant "postmaster et al. stop here" -- this has been renamed to %q.
* Rotate on time boundaries that are sensible per local time rather than GMT.Tom Lane2004-09-21
| | | | | Also, avoid truncating the file we just wrote into, which might otherwise easily happen at DST boundaries. Ed L. and Tom Lane.
* Change some of the existing plpgsql regression test cases so that theyTom Lane2004-09-20
| | | | | exercise dollar quoting and named function parameters. AFAICS we had no tests of either feature before.
* Fix some shortcomings in psql's autocommit-off mode concerning detectionTom Lane2004-09-20
| | | | | | | of commands for which a transaction block should not be forced. Recognize VACUUM and other PreventTransactionChain commands; handle nested /* .. */ comments correctly; handle multibyte encodings correctly. Michael Paesold with some kibitzing from Tom Lane.
* Documentation improvements, per Josh Berkus.Tom Lane2004-09-20
|
* Translation updatePeter Eisentraut2004-09-20
|
* Translation updatesPeter Eisentraut2004-09-20
|
* Translation updatesPeter Eisentraut2004-09-20
|
* Translation updatesPeter Eisentraut2004-09-20
|
* Add defenses against plpython functions being declared to take or returnTom Lane2004-09-19
| | | | | pseudotypes. Not sure why I neglected to add these checks at the same time I added them to the other PLs, but it seems I did.
* Fix estimate_num_groups to be able to use expression-index statisticsTom Lane2004-09-18
| | | | when there is an expressional index matching a GROUP BY item.
* Move comment at end of line to a separate line so trailing tabs don'tPeter Eisentraut2004-09-18
| | | | become part of the make variable value.
* Fix memory leak in tokenize_file, per report from Vadim Passynkov.Tom Lane2004-09-18
|
* Allow WIN1250 as server encoding.Peter Eisentraut2004-09-17
|
* Hashed LEFT JOIN would miss outer tuples with no inner match if the joinTom Lane2004-09-17
| | | | | | was large enough to be batched and the tuples fell into a batch where there were no inner tuples at all. Thanks to Xiaoyu Wang for finding a test case that exposed this long-standing bug.
* Now that xmax and cmin are distinct fields again, we should zero xmax whenTom Lane2004-09-17
| | | | | | creating a new tuple. This is just for debugging sanity, though, since nothing should be paying any attention to xmax when the HEAP_XMAX_INVALID bit is set.
* Fix oversight: there's no reason for PG_TRY to use sigsetjmp(buf,1)Tom Lane2004-09-16
| | | | | since we don't change the signal mask during normal backend operations. Use sigsetjmp(buf,0) to avoid many unnecessary kernel calls.
* Remove erroneous Assert, per example from Kris Jurka.Tom Lane2004-09-16
|
* Add some marginal tweaks to eliminate memory leakages associated withTom Lane2004-09-16
| | | | | subtransactions. Trivial subxacts (such as a plpgsql exception block containing no database access) now demonstrably leak zero bytes.
* RecentXmin is too recent to use as the cutoff point for accessingTom Lane2004-09-16
| | | | | | | pg_subtrans --- what we need is the oldest xmin of any snapshot in use in the current top transaction. Introduce a new variable TransactionXmin to play this role. Fixes intermittent regression failure reported by Neil Conway.
* Restructure subtransaction handling to reduce resource consumption,Tom Lane2004-09-16
| | | | | | | | | | | | | | | | | as per recent discussions. Invent SubTransactionIds that are managed like CommandIds (ie, counter is reset at start of each top transaction), and use these instead of TransactionIds to keep track of subtransaction status in those modules that need it. This means that a subtransaction does not need an XID unless it actually inserts/modifies rows in the database. Accordingly, don't assign it an XID nor take a lock on the XID until it tries to do that. This saves a lot of overhead for subtransactions that are only used for error recovery (eg plpgsql exceptions). Also, arrange to release a subtransaction's XID lock as soon as the subtransaction exits, in both the commit and abort cases. This avoids holding many unique locks after a long series of subtransactions. The price is some additional overhead in XactLockTableWait, but that seems acceptable. Finally, restructure the state machine in xact.c to have a more orthogonal set of states for subtransactions.
* Fix a read of uninitialized memory in array_out(). Perform some minorNeil Conway2004-09-16
| | | | cosmetic code cleanup at the same time.
* Cosmetic PL/PgSQL fix: declare the second parameter plpgsql_dstring_appendNeil Conway2004-09-14
| | | | as a const char *, so that we don't need to cast away a const in gram.y
* New translationPeter Eisentraut2004-09-14
|
* Translation updatePeter Eisentraut2004-09-14
|
* Win32 compile fix for misc_utils.Tom Lane2004-09-14
| | | | Claudio Natoli
* Make pltcl work on Win32. Magnus HaganderTom Lane2004-09-14
|
* Fix small memory leak in psql.Neil Conway2004-09-13
|
* Translation updatePeter Eisentraut2004-09-13
|
* Redesign query-snapshot timing so that volatile functions in READ COMMITTEDTom Lane2004-09-13
| | | | | | | | | | | | | mode see a fresh snapshot for each command in the function, rather than using the latest interactive command's snapshot. Also, suppress fresh snapshots as well as CommandCounterIncrement inside STABLE and IMMUTABLE functions, instead using the snapshot taken for the most closely nested regular query. (This behavior is only sane for read-only functions, so the patch also enforces that such functions contain only SELECT commands.) As per my proposal of 6-Sep-2004; I note that I floated essentially the same proposal on 19-Jun-2002, but that discussion tailed off without any action. Since 8.0 seems like the right place to be taking possibly nontrivial backwards compatibility hits, let's get it done now.
* Translation updatesPeter Eisentraut2004-09-13
|
* Translation updatesPeter Eisentraut2004-09-13
|