summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-09-03Fix case where "PM" to_timestamp() mask was eating too many characters.Bruce Momjian
Report from Josh Tolley.
2006-09-03Fix LLONG_MAX define used by new int64 FETCH/MOVE patch.Bruce Momjian
2006-09-03Remove unnecessary copyObject() call in update (values) code.Bruce Momjian
2006-09-02Make autovacuum behavior more agressive, per discussion on hackers listBruce Momjian
--- was part of autovacuum default 'on' patch that was reverted, but we want this part. Peter Eisentraut
2006-09-02Update postgresql.conf line for default superuser_reserved_connections.Bruce Momjian
2006-09-02Change "superuser_reserved_connections" default to 3, because ofBruce Momjian
possible autovacuum use.
2006-09-02Small code cleanup for recent UPDATE SET (values) patch.Bruce Momjian
2006-09-02Add UPDATE tab SET ROW (col, ...) = (val, ...) for updatingBruce Momjian
multiple columns Susanne Ebrecht
2006-09-02Change FETCH/MOVE to use int8.Bruce Momjian
Dhanaraj M
2006-09-02Revert as not needed/inconsistent with SQL REINDEX:Bruce Momjian
Suppress some NOTICE messages from REINDEX command. Euler Taveira de Oliveira
2006-09-02Remove GUC_REPORT for new "server_version_num" GUC variable. AddedBruce Momjian
overhead for every connection, per Tom.
2006-09-02Apply a simple solution to the problem of making INSERT/UPDATE/DELETETom Lane
RETURNING play nice with views/rules. To wit, have the rule rewriter rewrite any RETURNING clause found in a rule to produce what the rule's triggering query asked for in its RETURNING clause, in particular drop the RETURNING clause if no RETURNING in the triggering query. This leaves the responsibility for knowing how to produce the view's output columns on the rule author, without requiring any fundamental changes in rule semantics such as adding new rule event types would do. The initial implementation constrains things to ensure that there is exactly one, unconditionally invoked RETURNING clause among the rules for an event --- later we might be able to relax that, but for a post feature freeze fix it seems better to minimize how much invention we do. Per gripe from Jaime Casanova.
2006-09-02Add new variable "server_version_num", which is almost the same asBruce Momjian
"server_version" but uses the handy PG_VERSION_NUM which allows apps to do things like if ($version >= 80200) without having to parse apart the value of server_version themselves. Greg Sabino Mullane greg@turnstep.com
2006-09-02Allow PL/python to return composite types and result setsBruce Momjian
Sven Suursoho
2006-09-02Suppress some NOTICE messages from REINDEX command.Bruce Momjian
Euler Taveira de Oliveira
2006-08-31Clean up rather sloppy fix in HEAD for the ancient bug that CREATE CONVERSIONTom Lane
didn't create a dependency from the new conversion to its schema. Back-patch to all supported releases.
2006-08-31Repair interpretation of GB as MB.Peter Eisentraut
2006-08-31Attibution addition: Add Karel Zak also for COPY SELECT.Bruce Momjian
2006-08-31Correct attibution:Bruce Momjian
COPY SELECT work done by Zoltan Boszormenyi
2006-08-30Extend COPY to support COPY (SELECT ...) TO ...Tom Lane
Bernd Helmle
2006-08-30Update logging of prepare/execute syntax, per comments from Guillaume Smet.Bruce Momjian
2006-08-30Fix things so that fopen's, not only open's, pass FILE_SHARE_DELETETom Lane
and other special flags on Windows. May fix intermittent 'Permission denied' errors. Magnus Hagander
2006-08-29Dept. of second thoughts: if query fails part way through, shut downTom Lane
the pager before reporting the error.
2006-08-29Create a FETCH_COUNT parameter that causes psql to execute SELECT-likeTom Lane
queries via a cursor, fetching a limited number of rows at a time and therefore not risking exhausting memory. A disadvantage of the scheme is that 'aligned' output mode will align each group of rows independently leading to odd-looking output, but all the other output formats work reasonably well. Chris Mair, with some additional hacking by moi.
2006-08-29Separate prepared statement and bind parameters with comma.Bruce Momjian
Fix printing of NULL bind parameters, use "NULL".
2006-08-29Fix mistypingTeodor Sigaev
2006-08-29Invent an assign-hook mechanism for psql variables similar to the oneTom Lane
existing for backend GUC variables, and use this to eliminate repeated fetching/parsing of psql variables in psql's inner loops. In a trivial test with lots of 'select 1;' commands, psql's CPU time went down almost 10%, although of course the effect on total elapsed time was much less. Per discussion about how to ensure the upcoming FETCH_COUNT patch doesn't cost any performance when not being used.
2006-08-29Fix BUG #2594: Gin Indexes cause server to crash when it builds on empty tableTeodor Sigaev
2006-08-29Second try committing the path changes.Michael Meskes
2006-08-29Removed debug option from pg_regress call.Michael Meskes
Changed file paths in expected files too.
2006-08-29Fixed parser and library to allow empty database names.Michael Meskes
Streamlined connection name parsing. Added Joachim's patch to shorten paths before diffing.
2006-08-29Revert change to turn autovacuum on by default.Peter Eisentraut
2006-08-29Only call log_after_parse() if necessary.Bruce Momjian
2006-08-29Now bind displays prepare as detail, and execute displays prepare andBruce Momjian
optionally bind. I re-added the "statement:" label so people will understand why the line is being printed (it is log_*statement behavior). Use single quotes for bind values, instead of double quotes, and double literal single quotes in bind values (and document that). I also made use of the DETAIL line to have much cleaner output.
2006-08-28Fix pgstat_report_waiting() to not dump core if called beforeTom Lane
pgstat_bestart() has been called; else any lock-block occurring during InitPostgres() is disastrous. I believe this explains recent wasp regression failure; at least it explains the crash I got while trying to duplicate the problem. I also made pgstat_report_activity() safe against the same scenario, just in case. The report_waiting hazard was created by my patch of 19-Aug to include waiting status in pg_stat_activity.
2006-08-28Partial fix for ecpg's VPATH problems. It compiles and successfullyTom Lane
builds all the files needed for its regression tests, but the tests themselves fail because of diffs in the #line directives output by ecpg itself. Not sure what to do about that.
2006-08-28Tweak trivial_subqueryscan() to consider a SubqueryScan's targetlistTom Lane
trivial if it contains either Vars referencing the corresponding subplan columns, or Consts equaling the corresponding subplan columns. This lets the planner eliminate the SubqueryScan in some cases generated by generate_setop_tlist().
2006-08-28Turn autovacuum on by default. (stats_row_level is also on by default.)Peter Eisentraut
Threshold and scale factor are cut in half for more aggressive behavior.
2006-08-27Add new return codes SPI_OK_INSERT_RETURNING etc to the SPI API.Tom Lane
Fix all the standard PLs to be able to return tuples from FOO_RETURNING statements as well as utility statements that return tuples. Also, fix oversight that SPI_processed wasn't set for a utility statement returning tuples. Per recent discussion.
2006-08-27Add some notes about why it's not a bug that RI_FKey_check callsTom Lane
HeapTupleSatisfiesItself without doing LockBuffer first. This code is a bit fragile, but AFAICS it's not actually broken.
2006-08-27Add a function GetLockConflicts() to lock.c to report xacts holdingTom Lane
locks that would conflict with a specified lock request, without actually trying to get that lock. Use this instead of the former ad hoc method of doing the first wait step in CREATE INDEX CONCURRENTLY. Fixes problem with undetected deadlock and in many cases will allow the index creation to proceed sooner than it otherwise could've. Per discussion with Greg Stark.
2006-08-27Move xact.c's partial support for Lists of TransactionIds into pg_list.h.Tom Lane
Needed because lock.c is now going to use the same type of list.
2006-08-27- Enabled single-quoted connection targets.Michael Meskes
- Fixed a memory leak/segfault in unsuccessful connection. - Some changes to test files.
2006-08-27Make saveHistory work properly on OS X when HISTFILE is set to /dev/null.Tom Lane
Per discussion with Martin Atukunda.
2006-08-26Changed double output.Michael Meskes
2006-08-25Add the ability to create indexes 'concurrently', that is, withoutTom Lane
blocking concurrent writes to the table. Greg Stark, with a little help from Tom Lane.
2006-08-24Synced parserMichael Meskes
2006-08-24Needed more stuff from c.h.Michael Meskes
2006-08-24Fixed of by one variable size.Michael Meskes
2006-08-24Need more defines in ecpg_config.h, patch sent by Rocco Altier ↵Michael Meskes
<RoccoA@Routescape.com>