summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-06-26Use Unix line endings instead of DOS ones, per Magnus.Bruce Momjian
2006-06-26Update include files to Unix newline format, per report from Magnus.Bruce Momjian
2006-06-26Update comment description of geo routines and move comment to moreBruce Momjian
relevant location.
2006-06-26Added some more coverity report patches send in by Joachim Wieland ↵Michael Meskes
<joe@mcknight.de>.
2006-06-25Update my info:Bruce Momjian
> * Bruce is Bruce Momjian <bruce@momjian.us> of EnterpriseDB
2006-06-25Tweak dynahash.c to avoid wasting memory space in non-shared hash tables.Tom Lane
palloc() will normally round allocation requests up to the next power of 2, so make dynahash choose allocation sizes that are as close to a power of 2 as possible. Back-patch to 8.1 --- the problem exists further back, but a much larger patch would be needed and it doesn't seem worth taking any risks.
2006-06-25Add:Bruce Momjian
< * Reuse index tuples that point to rows that are not visible to anyone? > * Reuse index tuples that point to heap tuples that are not visible to > anyone?
2006-06-25Moved some free() calls that coverity correctly complains about.Michael Meskes
2006-06-25Our version of getopt_long does not set optarg upon detecting an error, asAlvaro Herrera
opposed to what other versions apparently do, so it's not safe to print an error message. Besides, getopt_long itself already did, so it's redundant anyway.
2006-06-25Remove individual user copyright because the code is contributed toBruce Momjian
PGDG: > Yes. In fact the copyright belongs to credativ GmbH the company that > paid Carsten for his work. As you may or may not know I'm the CEO of > that company and can assure you that his work was contributed to the > PostgreSQL project.
2006-06-25Fix GEVHDRSZ for Win32.Bruce Momjian
Magnus Hagander
2006-06-25Fix Win32/Cygwin problems:Bruce Momjian
After updating to the latest cvs, and also building most of the addons (like PLs), the following patch is neededf for win32 + Visual C++. * Switch to use the new win32 semaphore code * Rename win32_open to pgwin32_open. win32_open collides with symbols defined in Perl. MingW didn't detect ig, MSVC did. And it's a bit too generic a name to export globally, imho... * Python defines some partially broken #pragmas in the headers when doing a debug build. Workaround. Magnus Hagander
2006-06-24Update entry:Bruce Momjian
< * Allow heap reuse of UPDATEd rows if old and new versions are on the < same heap page? > * Allow heap reuse of UPDATEd rows if no indexed columns are changed, > and old and new versions are on the same heap page? < This is possible for same-page updates because a single index row < can point to both old and new values. > While vacuum handles DELETEs fine, updating of non-indexed columns, like > counters, are difficult for VACUUM to handle efficiently. This method > is possible for same-page updates because a single index row can be > used to point to both old and new values.
2006-06-24Add UPDATE entry for row reuse.Bruce Momjian
> > * Allow heap reuse of UPDATEd rows if old and new versions are on the > same heap page? > > This is possible for same-page updates because a single index row > can point to both old and new values. > http://archives.postgresql.org/pgsql-hackers/2006-06/msg01305.php
2006-06-24Fix re-inclusion of port header file on Windows, per Magnus.Tom Lane
2006-06-23Clarified copyright noticeMichael Meskes
2006-06-22Remove dllinit.c; it was only needed for long-obsolete Cygwin versions,Tom Lane
and there was some question about its copyright status.
2006-06-22pg_stop_backup was calling XLogArchiveNotify() twice for the newly createdTom Lane
backup history file. Bug introduced by the 8.1 change to make pg_stop_backup delete older history files. Per report from Masao Fujii.
2006-06-22Standalone backends need pgstat_bestart() too, per Qingqing Zhou.Tom Lane
2006-06-21Move setup_cancel_handler() up near start of psql main(), where theTom Lane
setup_win32_locks() call formerly was, to ensure that cancelConnLock is valid when it needs to be. Per Yoshiyuki Asaba.
2006-06-21Remove ancient kluge that kept nodeAgg.c from crashing on UPDATEs involvingTom Lane
aggregates. We just disallowed that, and AFAICS there should be no other cases where direct (non-aggregated) references to input columns are allowed in a query with aggregation and no GROUP BY.
2006-06-21Disallow aggregate functions in UPDATE commands (unless within a sub-SELECT).Tom Lane
This is disallowed by the SQL spec because it doesn't have any very sensible interpretation. Historically Postgres has allowed it but behaved strangely. As of PG 8.1 a server crash is possible if the MIN/MAX index optimization gets applied; rather than try to "fix" that, it seems best to just enforce the spec restriction. Per report from Josh Drake and Alvaro Herrera.
2006-06-21Eliminate a gratuitously different wording of the 'cannot use aggregate ↵Tom Lane
function in check constraint' error message.
2006-06-21- During dblink_open, if transaction state was IDLE, force cursor count toJoe Conway
initially be 0. This is needed as a previous ABORT might have wiped out an automatically opened transaction without maintaining the cursor count. - Fix regression test expected file for the correct ERROR message, which we now get given the above bug fix.
2006-06-21Clean up psql variable code a little: eliminate unnecessary tests inTom Lane
GetVariable() and be consistent about treatment of the list header. Motivated by noticing strspn() taking an unreasonable percentage of runtime --- the call removed from GetVariable() was the only one that could be in a high-usage path ...
2006-06-21Added some more coverity report patches send in by Martijn van Oosterhout ↵Michael Meskes
<kleptog@svana.org>.
2006-06-21Fixed small typo in changelogMichael Meskes
2006-06-21Added fixed from the coverity report send in by Joachim Wieland ↵Michael Meskes
<joe@mcknight.de> Added missing error handling in a few functions in ecpglib
2006-06-20Remove redundant gettimeofday() calls to the extent practical withoutTom Lane
changing semantics too much. statement_timestamp is now set immediately upon receipt of a client command message, and the various places that used to do their own gettimeofday() calls to mark command startup are referenced to that instead. I have also made stats_command_string use that same value for pg_stat_activity.query_start for both the command itself and its eventual replacement by <IDLE> or <idle in transaction>. There was some debate about that, but no argument that seemed convincing enough to justify an extra gettimeofday() call.
2006-06-20Split definitions for md5.c out of crypt.h and into their own headerTom Lane
libpq/md5.h, so that there's a clear separation between backend-only definitions and shared frontend/backend definitions. (Turns out this is reversing a bad decision from some years ago...) Fix up references to crypt.h as needed. I looked into moving the code into src/port, but the headers in src/include/libpq are sufficiently intertwined that it seems more work than it's worth to do that.
2006-06-19Some editorial work on the documentation of the current-date/timeTom Lane
functions.
2006-06-19Do not use already free'ed errmsg, bug found by Joachim WielandMichael Meskes
<joachim.wieland@credativ.de>
2006-06-19Take the statistics collector out of the loop for monitoring backends'Tom Lane
current commands; instead, store current-status information in shared memory. This substantially reduces the overhead of stats_command_string and also ensures that pg_stat_activity is fully up to date at all times. Per my recent proposal.
2006-06-18Update my email address.Bruce Momjian
2006-06-18Don't try to call posix_fadvise() unless <fcntl.h> supplies a declarationTom Lane
for it. Hopefully will fix core dump evidenced by some buildfarm members since fadvise patch went in. The actual definition of the function is not ABI-compatible with compiler's default assumption in the absence of any declaration, so it's clearly unsafe to try to call it without seeing a declaration.
2006-06-18Fix saveHistory() to not emit bogus complaint during psql exit when usingTom Lane
Darwin's libedit; per my proposal last August. Also, suppress cast-away- const warnings.
2006-06-18Increase timeout in statement_timeout test from 1 second to 2 seconds.Tom Lane
We have once or twice seen failures suggesting that control didn't get to the exception block before the timeout elapsed, which is unlikely but not impossible in a parallel regression test (with a dozen other backends competing for cycles). This change doesn't completely prevent the problem of course, but it should reduce the probability enough that we don't see it anymore. Per buildfarm results.
2006-06-18Merge postmaster and postgres command into just postgres. postmasterPeter Eisentraut
symlink is kept for now for compatibility. To call single-user mode, use postgres --single.
2006-06-16Fix a couple of obvious problems in DROP IF EXISTS patch.Tom Lane
2006-06-16Code review for SELECT INTO STRICT patch: use saner choices of errorTom Lane
SQLSTATEs, fix some documentation problems.
2006-06-16Clean up after someone's curious idea that it'd be good to stripTom Lane
leading zeroes from the SQLSTATE codes. They're strings, people, not numbers.
2006-06-16docs for DROP ... IF EXISTS for the following cases:Andrew Dunstan
language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
2006-06-16Add:Bruce Momjian
> o Allow PL/python to composite types and result sets > once buggy assert-enabled versions of python can be detected > > http://archives.postgresql.org/pgsql-patches/2006-04/msg00087.php
2006-06-16Add:Bruce Momjian
> > * Fix CREATE CAST on DOMAINs > > http://archives.postgresql.org/pgsql-hackers/2006-05/msg00072.php
2006-06-16Document issues with non-default tablespaces and pg_dumpall restores.Bruce Momjian
Backpatch documentation addition to 8.1.X.
2006-06-16Add URL for ISO dates:Bruce Momjian
> http://archives.postgresql.org/pgsql-bugs/2006-04/msg00248.php
2006-06-16DROP ... IF EXISTS for the following cases:Andrew Dunstan
language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
2006-06-16Add URL for currency type:Bruce Momjian
> http://archives.postgresql.org/pgsql-general/2005-08/msg01432.php
2006-06-16Add URL for updatable views:Bruce Momjian
> http://archives.postgresql.org/pgsql-hackers/2006-03/msg00586.php
2006-06-16Add:Bruce Momjian
> * Consider shrinking expired tuples to just their headers > http://archives.postgresql.org/pgsql-patches/2006-03/msg00142.php