]> git.ipfire.org Git - thirdparty/postgresql.git/log
thirdparty/postgresql.git
20 years agoUpdate Chinese FAQ, per Magnus.
Bruce Momjian [Wed, 11 May 2005 14:57:26 +0000 (14:57 +0000)] 
Update Chinese FAQ, per Magnus.

20 years agoBackpatch mention that not all functions are listed, with spelling fix.
Bruce Momjian [Wed, 11 May 2005 14:10:40 +0000 (14:10 +0000)] 
Backpatch mention that not all functions are listed, with spelling fix.

20 years agoAdd mention that not all functions are listed.
Bruce Momjian [Wed, 11 May 2005 13:36:53 +0000 (13:36 +0000)] 
Add mention that not all functions are listed.

Update Chinese FAQ for HTML.

20 years agoBackpatch new Chinese FAQ to 8.0.X.
Bruce Momjian [Wed, 11 May 2005 02:13:21 +0000 (02:13 +0000)] 
Backpatch new Chinese FAQ to 8.0.X.

20 years agoRename encryption section. REL8_0_3
Bruce Momjian [Mon, 9 May 2005 17:26:55 +0000 (17:26 +0000)] 
Rename encryption section.

20 years agoBackpatch FAQ's to 8.0.X for release.
Bruce Momjian [Mon, 9 May 2005 17:24:04 +0000 (17:24 +0000)] 
Backpatch FAQ's to 8.0.X for release.

20 years agoBackpatch encryption doc section to 8.0.X.
Bruce Momjian [Mon, 9 May 2005 17:14:47 +0000 (17:14 +0000)] 
Backpatch encryption doc section to 8.0.X.

20 years agoUpdate release notes for upcoming re-releases.
Tom Lane [Mon, 9 May 2005 00:10:06 +0000 (00:10 +0000)] 
Update release notes for upcoming re-releases.

20 years agoUpdate release checklist to reflect that HISTORY and INSTALL don't
Tom Lane [Sun, 8 May 2005 23:34:23 +0000 (23:34 +0000)] 
Update release checklist to reflect that HISTORY and INSTALL don't
need to be created by hand anymore.

20 years agoRepair very-low-probability race condition between relation extension
Tom Lane [Sat, 7 May 2005 21:32:53 +0000 (21:32 +0000)] 
Repair very-low-probability race condition between relation extension
and VACUUM: in the interval between adding a new page to the relation
and formatting it, it was possible for VACUUM to come along and decide
it should format the page too.  Though not harmful in itself, this would
cause data loss if a third transaction were able to insert tuples into
the vacuumed page before the original extender got control back.

20 years agoAdjust time qual checking code so that we always check TransactionIdIsInProgress
Tom Lane [Sat, 7 May 2005 21:22:36 +0000 (21:22 +0000)] 
Adjust time qual checking code so that we always check TransactionIdIsInProgress
before we check commit/abort status.  Formerly this was done in some paths
but not all, with the result that a transaction might be considered
committed for some purposes before it became committed for others.
Per example found by Jan Wieck.

20 years agoStamp release 8.0.3.
Tom Lane [Thu, 5 May 2005 20:07:36 +0000 (20:07 +0000)] 
Stamp release 8.0.3.

20 years agoMake standalone backends ignore pg_database.datallowconn, so that there
Tom Lane [Thu, 5 May 2005 19:53:37 +0000 (19:53 +0000)] 
Make standalone backends ignore pg_database.datallowconn, so that there
is a way to recover from disabling connections to all databases at once.

20 years agoAdd WSACleanup() for Win32 socket cleanup.
Bruce Momjian [Thu, 5 May 2005 16:36:20 +0000 (16:36 +0000)] 
Add WSACleanup() for Win32 socket cleanup.

Jason Erickson

20 years agoUse postmaster_is_alive() check in pg_ctl restart as well as pg_ctl status,
Tom Lane [Wed, 4 May 2005 22:35:22 +0000 (22:35 +0000)] 
Use postmaster_is_alive() check in pg_ctl restart as well as pg_ctl status,
so that restart doesn't fail when old postmaster died unbetimes.

20 years agoSpell DELIMITER correctly, per Seamus Dean.
Tom Lane [Wed, 4 May 2005 14:25:30 +0000 (14:25 +0000)] 
Spell DELIMITER correctly, per Seamus Dean.

20 years agoAlter the signature for encoding conversion functions to declare the
Tom Lane [Tue, 3 May 2005 19:18:16 +0000 (19:18 +0000)] 
Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.

20 years agoChange tsearch2 to not use the unsafe practice of creating functions
Tom Lane [Tue, 3 May 2005 16:51:22 +0000 (16:51 +0000)] 
Change tsearch2 to not use the unsafe practice of creating functions
that return INTERNAL without also having INTERNAL arguments.  Since the
functions in question aren't meant to be called by hand anyway, I just
redeclared them to take 'internal' instead of 'text'.  Also add code
to ProcedureCreate() to enforce the restriction, as I should have done
to start with :-(

20 years agoFix a whitespace problem. From Alvaro Herrera.
Dennis Bjorklund [Tue, 3 May 2005 06:28:24 +0000 (06:28 +0000)] 
Fix a whitespace problem. From Alvaro Herrera.

20 years agoBackport fix for correct quoting in CREATE DOMAIN example. Per Robert
Neil Conway [Mon, 2 May 2005 01:56:16 +0000 (01:56 +0000)] 
Backport fix for correct quoting in CREATE DOMAIN example. Per Robert
Treat.

20 years agoMake record_out and record_send extract type information from the passed
Tom Lane [Sat, 30 Apr 2005 20:04:46 +0000 (20:04 +0000)] 
Make record_out and record_send extract type information from the passed
record object itself, rather than relying on a second OID argument to be
correct.  This patch just changes the function behavior and not the
catalogs, so it's OK to back-patch to 8.0.  Will remove the now-redundant
second argument in pg_proc in a separate patch in HEAD only.

20 years agoGCC 4.0 includes a new warning option, -Wformat-literal, that emits
Neil Conway [Sat, 30 Apr 2005 08:19:44 +0000 (08:19 +0000)] 
GCC 4.0 includes a new warning option, -Wformat-literal, that emits
a warning when a variable is used as a format string for printf()
and similar functions (if the variable is derived from untrusted
data, it could include unexpected formatting sequences). This
emits too many warnings to be enabled by default, but it does
flag a few dubious constructs in the Postgres tree. This patch
fixes up the obvious variants: functions that are passed a variable
format string but no additional arguments.

Most of these are harmless (e.g. the ruleutils stuff), but there
is at least one actual bug here: if you create a trigger named
"%sfoo", pg_dump will read uninitialized memory and fail to dump
the trigger correctly.

20 years agoThis patch fixes a bug in the error message emitted by pg_restore on an
Neil Conway [Sat, 30 Apr 2005 08:00:14 +0000 (08:00 +0000)] 
This patch fixes a bug in the error message emitted by pg_restore on an
incorrect -F argument: write_msg() expects its first parameter to be a
"module name", not the format string.

20 years agoImprove cleanup from win32 client-only build.
Bruce Momjian [Fri, 29 Apr 2005 14:07:34 +0000 (14:07 +0000)] 
Improve cleanup from win32 client-only build.

20 years agoBackpatch BCC compile changes to 8.0.X for psql.
Bruce Momjian [Fri, 29 Apr 2005 13:42:24 +0000 (13:42 +0000)] 
Backpatch BCC compile changes to 8.0.X for psql.

20 years agoFix Borland makefile for libpq and improve it for psql.
Bruce Momjian [Fri, 29 Apr 2005 04:21:39 +0000 (04:21 +0000)] 
Fix Borland makefile for libpq and improve it for psql.

Reorder MSC makefile to be more consistent and easier to maintain.

20 years agoWording improvement.
Bruce Momjian [Wed, 27 Apr 2005 20:11:11 +0000 (20:11 +0000)] 
Wording improvement.

20 years agoUpdate PAM documentation, per Alvaro.
Bruce Momjian [Wed, 27 Apr 2005 20:09:58 +0000 (20:09 +0000)] 
Update PAM documentation, per Alvaro.

20 years agoworkaround for bug in utils/date.h (timetz)
Teodor Sigaev [Wed, 27 Apr 2005 13:01:27 +0000 (13:01 +0000)] 
workaround for bug in utils/date.h (timetz)

20 years agoMention that PAM requires the user already exist in the database, per
Bruce Momjian [Tue, 26 Apr 2005 03:01:22 +0000 (03:01 +0000)] 
Mention that PAM requires the user already exist in the database, per
Dick Davies.

20 years agoFix btree_gist to handle timetz zone correctly per recent changes.
Tom Lane [Mon, 25 Apr 2005 16:58:18 +0000 (16:58 +0000)] 
Fix btree_gist to handle timetz zone correctly per recent changes.

20 years agoRepair two TIME WITH TIME ZONE bugs found by Dennis Vshivkov. Comparison
Tom Lane [Sat, 23 Apr 2005 22:53:26 +0000 (22:53 +0000)] 
Repair two TIME WITH TIME ZONE bugs found by Dennis Vshivkov.  Comparison
of timetz values misbehaved in --enable-integer-datetime cases, and
EXTRACT(EPOCH) subtracted the zone instead of adding it in all cases.
Backpatch to all supported releases (except --enable-integer-datetime code
does not exist in 7.2).

20 years agoint_aggregate's int_enum() doesn't work correctly with arrays that
Tom Lane [Sat, 23 Apr 2005 05:38:43 +0000 (05:38 +0000)] 
int_aggregate's int_enum() doesn't work correctly with arrays that
aren't 1-D, so give an error message instead of failing.  Per report
from Ron Mayer.

20 years agoBackpatch of LIMIT / FOR UPDATE behavior, but keep pre-7.3 mention in 8.0.X.
Bruce Momjian [Fri, 22 Apr 2005 15:53:27 +0000 (15:53 +0000)] 
Backpatch of LIMIT / FOR UPDATE behavior, but keep pre-7.3 mention in 8.0.X.

20 years agoClarify that only crypt can't use md5 pg_shadow passwords.
Bruce Momjian [Fri, 22 Apr 2005 04:19:02 +0000 (04:19 +0000)] 
Clarify that only crypt can't use md5 pg_shadow passwords.

20 years agoClarify use of MD5 authentication and pg_shadow encryption.
Bruce Momjian [Thu, 21 Apr 2005 22:19:27 +0000 (22:19 +0000)] 
Clarify use of MD5 authentication and pg_shadow encryption.

20 years agoMake pg_ctl status do a kill() test to verify that the PID found in
Tom Lane [Wed, 20 Apr 2005 23:10:22 +0000 (23:10 +0000)] 
Make pg_ctl status do a kill() test to verify that the PID found in
postmaster.pid still represents a live postmaster.

20 years agoDon't try to run clauseless index scans on index types that don't support
Tom Lane [Wed, 20 Apr 2005 21:48:12 +0000 (21:48 +0000)] 
Don't try to run clauseless index scans on index types that don't support
it.  Per report from Marinos Yannikos.

20 years agoFix mis-display of negative fractional seconds in interval values for
Tom Lane [Wed, 20 Apr 2005 17:14:58 +0000 (17:14 +0000)] 
Fix mis-display of negative fractional seconds in interval values for
--enable-integer-datetimes case.  Per report from Oliver Siegmar.

20 years agoAdd comment about permissions on pg_ts* tables
Teodor Sigaev [Tue, 19 Apr 2005 13:58:11 +0000 (13:58 +0000)] 
Add comment about permissions on pg_ts* tables

20 years agoUpdate PITR wording, per Simon.
Bruce Momjian [Tue, 19 Apr 2005 01:40:02 +0000 (01:40 +0000)] 
Update PITR wording, per Simon.

20 years agopg_dumpall should enforce the server version check for itself, rather
Tom Lane [Mon, 18 Apr 2005 23:48:01 +0000 (23:48 +0000)] 
pg_dumpall should enforce the server version check for itself, rather
than simply passing it down to pg_dump.  Else, version-related failures
in pg_dumpall itself generate unhelpful error messages.

20 years agorecord_in and record_recv must be careful to return a separately
Tom Lane [Mon, 18 Apr 2005 17:11:15 +0000 (17:11 +0000)] 
record_in and record_recv must be careful to return a separately
pfree'able result, since some callers expect to be able to pfree
the result of a pass-by-reference function.  Per report from Chris Trawick.

20 years agoUpdate PITR mention of which WAL files are needed.
Bruce Momjian [Mon, 18 Apr 2005 01:29:08 +0000 (01:29 +0000)] 
Update PITR mention of which WAL files are needed.

20 years agoClarify name of file to be checked for PITR expiring.
Bruce Momjian [Sun, 17 Apr 2005 03:05:27 +0000 (03:05 +0000)] 
Clarify name of file to be checked for PITR expiring.

20 years agoFix comment typo.
Bruce Momjian [Fri, 15 Apr 2005 22:49:45 +0000 (22:49 +0000)] 
Fix comment typo.

20 years agoRevert addition of poorly-thought-out DUMP TIMESTAMP archive entry,
Tom Lane [Fri, 15 Apr 2005 16:40:59 +0000 (16:40 +0000)] 
Revert addition of poorly-thought-out DUMP TIMESTAMP archive entry,
which induced bug #1597 in addition to having several other misbehaviors
(like labeling the dump with a completion time having nothing to do with
reality).  Instead just print out the desired strings where RestoreArchive
was already emitting the 'PostgreSQL database dump' and
'PostgreSQL database dump complete' strings.

20 years agoMake equalTupleDescs() compare attlen/attbyval/attalign rather than
Tom Lane [Thu, 14 Apr 2005 22:35:12 +0000 (22:35 +0000)] 
Make equalTupleDescs() compare attlen/attbyval/attalign rather than
assuming comparison of atttypid is sufficient.  In a dropped column
atttypid will be 0, and we'd better check the physical-storage data
to make sure the tupdescs are physically compatible.
I do not believe there is a real risk before 8.0, since before that
we only used this routine to compare successive states of the tupdesc
for a particular relation.  But 8.0's typcache.c might be comparing
arbitrary tupdescs so we'd better play it safer.

20 years agoDon't try to constant-fold functions returning RECORD, since the optimizer
Tom Lane [Thu, 14 Apr 2005 21:44:22 +0000 (21:44 +0000)] 
Don't try to constant-fold functions returning RECORD, since the optimizer
isn't presently set up to pass them an expected tuple descriptor.  Bug has
been there since 7.3 but was just recently reported by Thomas Hallgren.

20 years agoAdded patch by Philip Yarra <philip.yarra@internode.on.net> for a bug in thread support.
Michael Meskes [Thu, 14 Apr 2005 10:09:20 +0000 (10:09 +0000)] 
Added patch by Philip Yarra <philip.yarra@internode.on.net> for a bug in thread support.

20 years agoFix interaction between materializing holdable cursors and firing
Tom Lane [Mon, 11 Apr 2005 19:51:32 +0000 (19:51 +0000)] 
Fix interaction between materializing holdable cursors and firing
deferred triggers: either one can create more work for the other,
so we have to loop till it's all gone.  Per example from andrew@supernews.
Add a regression test to help spot trouble in this area in future.

20 years agoPersistHoldablePortal must establish the correct value for ActiveSnapshot
Tom Lane [Mon, 11 Apr 2005 15:59:47 +0000 (15:59 +0000)] 
PersistHoldablePortal must establish the correct value for ActiveSnapshot
while completing execution of the cursor's query.  Otherwise we get wrong
answers or even crashes from non-volatile functions called by the query.
Per report from andrew@supernews.

20 years agoMake constant-folding produce sane output for COALESCE(NULL,NULL),
Tom Lane [Sun, 10 Apr 2005 20:57:45 +0000 (20:57 +0000)] 
Make constant-folding produce sane output for COALESCE(NULL,NULL),
that is a plain NULL and not a COALESCE with no inputs.  Fixes crash
reported by Michael Williamson.

20 years agoSQL functions returning pass-by-reference types were copying the results
Tom Lane [Sun, 10 Apr 2005 18:04:31 +0000 (18:04 +0000)] 
SQL functions returning pass-by-reference types were copying the results
into the wrong memory context, resulting in a query-lifespan memory leak.
Bug is new in 8.0, I believe.  Per report from Rae Stiening.

20 years agoStamp 8.0.2. REL8_0_2
Tom Lane [Thu, 7 Apr 2005 19:43:06 +0000 (19:43 +0000)] 
Stamp 8.0.2.

20 years agoUpdate and copy-edit release notes for 8.0.2.
Tom Lane [Thu, 7 Apr 2005 19:04:19 +0000 (19:04 +0000)] 
Update and copy-edit release notes for 8.0.2.

20 years agoIn cost_mergejoin, the early-exit effect should not apply to the
Tom Lane [Mon, 4 Apr 2005 01:43:23 +0000 (01:43 +0000)] 
In cost_mergejoin, the early-exit effect should not apply to the
outer side of an outer join.  Per andrew@supernews.

20 years agoPut back code mistakenly removed from copy of postmaster's
Tom Lane [Sun, 3 Apr 2005 00:02:03 +0000 (00:02 +0000)] 
Put back code mistakenly removed from copy of postmaster's
daemonize routine, namely forcing stdin/stdout/stderr to point
to /dev/null.  Per Karl Denninger.

20 years agoTranslation updates
Peter Eisentraut [Sat, 2 Apr 2005 18:45:19 +0000 (18:45 +0000)] 
Translation updates

20 years agoTranslation updates
Peter Eisentraut [Sat, 2 Apr 2005 15:54:57 +0000 (15:54 +0000)] 
Translation updates

20 years agoFix release not typo.
Bruce Momjian [Sat, 2 Apr 2005 03:43:08 +0000 (03:43 +0000)] 
Fix release not typo.

20 years agoUpdate release notes for 8.0.2.
Bruce Momjian [Sat, 2 Apr 2005 02:42:59 +0000 (02:42 +0000)] 
Update release notes for 8.0.2.

20 years agoSecond try at making examine_variable and friends behave sanely in
Tom Lane [Fri, 1 Apr 2005 20:32:09 +0000 (20:32 +0000)] 
Second try at making examine_variable and friends behave sanely in
cases with binary-compatible relabeling.  My first try was implicitly
assuming that all operators scalarineqsel is used for have binary-
compatible datatypes on both sides ... which is very wrong of course.
Per report from Michael Fuhr.

20 years agoBackpatch FAQ's to 8.0.X.
Bruce Momjian [Fri, 1 Apr 2005 16:42:59 +0000 (16:42 +0000)] 
Backpatch FAQ's to 8.0.X.

20 years agoFix wrong week returnded by date_trunc('week') for early dates in
Bruce Momjian [Fri, 1 Apr 2005 14:25:39 +0000 (14:25 +0000)] 
Fix wrong week returnded by date_trunc('week') for early dates in
January --- would return wrong year for 2005-01-01 and 2006-01-01.

per report from Robert Creager.

Backpatch to 8.0.X.

20 years agoFlush any remaining statistics counts out to the collector at process
Tom Lane [Thu, 31 Mar 2005 23:21:09 +0000 (23:21 +0000)] 
Flush any remaining statistics counts out to the collector at process
exit.  Without this, operations triggered during backend exit (such as
temp table deletions) won't be counted ... which given heavy usage of
temp tables can lead to pg_autovacuum falling way behind on the need
to vacuum pg_class and pg_attribute.  Per reports from Steve Crawford
and others.

20 years agoTranslation updates
Peter Eisentraut [Thu, 31 Mar 2005 18:14:25 +0000 (18:14 +0000)] 
Translation updates

20 years agoFix various comparing functions
Teodor Sigaev [Thu, 31 Mar 2005 15:10:48 +0000 (15:10 +0000)] 
Fix various comparing functions

20 years agoDocument that the "-P" option to pg_autovacuum is insecure on many
Neil Conway [Wed, 30 Mar 2005 05:06:32 +0000 (05:06 +0000)] 
Document that the "-P" option to pg_autovacuum is insecure on many
platforms, and suggest using ~/.pgpass instead.

20 years agoFix a pair of related issues with estimation of inequalities that involve
Tom Lane [Sat, 26 Mar 2005 20:55:58 +0000 (20:55 +0000)] 
Fix a pair of related issues with estimation of inequalities that involve
binary-compatible relabeling of one or both operands.  examine_variable
should avoid stripping RelabelType from non-variable expressions, so that
they will continue to have the correct type; and convert_to_scalar should
just use that type and ignore the other input type.  This isn't perfect
but it beats failing entirely.  Per example from Michael Fuhr.

20 years agoMake additional stamps for 8.0.2.
Bruce Momjian [Sat, 26 Mar 2005 05:05:23 +0000 (05:05 +0000)] 
Make additional stamps for 8.0.2.

20 years agoTag for 8.0.2beta1
PostgreSQL Daemon [Sat, 26 Mar 2005 03:46:33 +0000 (03:46 +0000)] 
Tag for 8.0.2beta1

20 years agoAdd Windows-specific variant comparison file.
Tom Lane [Sat, 26 Mar 2005 03:38:11 +0000 (03:38 +0000)] 
Add Windows-specific variant comparison file.

20 years agoAdd another ORDER BY to rules test to eliminate platform-specific
Tom Lane [Sat, 26 Mar 2005 02:14:54 +0000 (02:14 +0000)] 
Add another ORDER BY to rules test to eliminate platform-specific
output ordering.

20 years agoPrevent to_char(interval) from dumping core on month-related formats
Tom Lane [Sat, 26 Mar 2005 00:41:45 +0000 (00:41 +0000)] 
Prevent to_char(interval) from dumping core on month-related formats
when a zero-month interval is given.  Per discussion with Karel.
Also, some desultory const-labeling of constant tables.  More could be
done along that line.

20 years agoRemove lazy_update_relstats; go back to having VACUUM just record the
Tom Lane [Fri, 25 Mar 2005 22:51:42 +0000 (22:51 +0000)] 
Remove lazy_update_relstats; go back to having VACUUM just record the
actual number of unremoved tuples as pg_class.reltuples.  The idea of
trying to estimate a steady state condition still seems attractive, but
this particular implementation crashed and burned ...

20 years agoHave libpgport link before libpq so that PG client applications are more
Bruce Momjian [Fri, 25 Mar 2005 18:18:41 +0000 (18:18 +0000)] 
Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.

Backpatch to 8.0.X.

20 years agoFix two bugs in change_owner_recurse_to_sequences: it was grabbing an
Tom Lane [Fri, 25 Mar 2005 18:04:47 +0000 (18:04 +0000)] 
Fix two bugs in change_owner_recurse_to_sequences: it was grabbing an
overly strong lock on pg_depend, and it wasn't closing the rel when done.
The latter bug was masked by the ResourceOwner code, which is something
that should be changed.

20 years agoUpdate and copy-edit description of privileges.
Tom Lane [Fri, 25 Mar 2005 16:39:03 +0000 (16:39 +0000)] 
Update and copy-edit description of privileges.

20 years agoAdd missing min/max parameters to DefineCustomIntVariable() and
Tom Lane [Fri, 25 Mar 2005 16:17:39 +0000 (16:17 +0000)] 
Add missing min/max parameters to DefineCustomIntVariable() and
DefineCustomRealVariable().  Thomas Hallgren

20 years agoFix to_date to behave reasonably when CC and YY fields are both used.
Tom Lane [Fri, 25 Mar 2005 16:08:50 +0000 (16:08 +0000)] 
Fix to_date to behave reasonably when CC and YY fields are both used.
Karel Zak

20 years agoKerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
Tom Lane [Fri, 25 Mar 2005 00:35:20 +0000 (00:35 +0000)] 
Kerberos fixes from Magnus Hagander --- in theory Kerberos 5 auth
should work on Windows now.  Also, rename set_noblock to pg_set_noblock;
since it is included in libpq, the former name polluted application
namespace.

20 years agoRevert ill-conceived change of libpq linkage --- breaks ecpg.
Tom Lane [Thu, 24 Mar 2005 23:54:01 +0000 (23:54 +0000)] 
Revert ill-conceived change of libpq linkage --- breaks ecpg.

20 years agoarray_map can't use the fn_extra field of the provided fcinfo struct as
Tom Lane [Thu, 24 Mar 2005 21:50:52 +0000 (21:50 +0000)] 
array_map can't use the fn_extra field of the provided fcinfo struct as
its private storage, because that belongs to the function that it is
supposed to call.  Per report from Ezequiel Tolnay.

20 years agoForce PG client applications to link to non-shared libpgport before
Bruce Momjian [Thu, 24 Mar 2005 19:33:40 +0000 (19:33 +0000)] 
Force PG client applications to link to non-shared libpgport before
linking to libpq.  This insulates applications from changes in libpq's
usage of libpgport functions.

Backpatched to 8.0.X.

20 years agoTweak planner to use a minimum size estimate of 10 pages for a
Tom Lane [Thu, 24 Mar 2005 19:15:11 +0000 (19:15 +0000)] 
Tweak planner to use a minimum size estimate of 10 pages for a
never-yet-vacuumed relation.  This restores the pre-8.0 behavior of
avoiding seqscans during initial data loading, while still allowing
reasonable optimization after a table has been vacuumed.  Several
regression test cases revert to 7.4-like behavior, which is probably
a good sign.  Per gripes from Keith Browne and others.

20 years agoFix python regression testing script to bail out early if language
Tom Lane [Thu, 24 Mar 2005 17:23:39 +0000 (17:23 +0000)] 
Fix python regression testing script to bail out early if language
creation fails ... no point in running the tests.

20 years agoAdjust plpython to convert \r\n and \r to \n in Python scripts,
Tom Lane [Thu, 24 Mar 2005 17:22:44 +0000 (17:22 +0000)] 
Adjust plpython to convert \r\n and \r to \n in Python scripts,
per recent discussion concluding that this is the Right Thing.  Add
regression test check for this behavior.  Michael Fuhr

20 years agoChange Win32 O_SYNC method to O_DSYNC because that is what the method
Bruce Momjian [Thu, 24 Mar 2005 04:37:07 +0000 (04:37 +0000)] 
Change Win32 O_SYNC method to O_DSYNC because that is what the method
currently does.  This is now the default Win32 wal sync method because
we perfer o_datasync to fsync.

Also, change Win32 fsync to a new wal sync method called
fsync_writethrough because that is the behavior of _commit, which is
what is used for fsync on Win32.

Backpatch to 8.0.X.

20 years agoAdd missing error checking in readdir() loops.
Tom Lane [Thu, 24 Mar 2005 02:11:33 +0000 (02:11 +0000)] 
Add missing error checking in readdir() loops.

20 years agoAdd note about risks involved in replaying CREATE TABLESPACE commands
Tom Lane [Wed, 23 Mar 2005 19:39:06 +0000 (19:39 +0000)] 
Add note about risks involved in replaying CREATE TABLESPACE commands
from WAL.  A couple other grammatical improvements too.

20 years agoPrevious "64-bit fix" for intagg didn't actually work. This is already
Tom Lane [Wed, 23 Mar 2005 19:06:54 +0000 (19:06 +0000)] 
Previous "64-bit fix" for intagg didn't actually work.  This is already
fixed properly in CVS tip, but we need a band-aid for back branches.
Per report from Ron Mayer.

20 years agoWAL must log CREATE and DROP DATABASE operations *without* using any
Tom Lane [Wed, 23 Mar 2005 00:04:25 +0000 (00:04 +0000)] 
WAL must log CREATE and DROP DATABASE operations *without* using any
explicit paths, so that the log can be replayed in a data directory
with a different absolute path than the original had.  To avoid forcing
initdb in the 8.0 branch, continue to accept the old WAL log record
types; they will never again be generated however, and the code can be
dropped after the next forced initdb.  Per report from Oleg Bartunov.
We still need to think about what it really means to WAL-log CREATE
TABLESPACE commands: we more or less have to put the absolute path
into those, but how to replay in a different context??

20 years agoFix quote_ident to use quote_identifier rather than its own, not quite
Tom Lane [Mon, 21 Mar 2005 16:29:31 +0000 (16:29 +0000)] 
Fix quote_ident to use quote_identifier rather than its own, not quite
up-to-speed logic; in particular this will cause it to quote names that
match keywords.  Remove unnecessary multibyte cruft from quote_literal
(all backend-internal encodings are 8-bit-safe).

20 years agoPut 'dump complete' message in the right place, so it comes out where
Tom Lane [Fri, 18 Mar 2005 17:33:03 +0000 (17:33 +0000)] 
Put 'dump complete' message in the right place, so it comes out where
it's supposed to when --file option is used.

20 years agoNeed to reset local buffer pin counts, not only shared buffer pins,
Tom Lane [Fri, 18 Mar 2005 16:16:20 +0000 (16:16 +0000)] 
Need to reset local buffer pin counts, not only shared buffer pins,
before we attempt any file deletions in ShutdownPostgres.  Per Tatsuo.

20 years agoAdded patch by Christof Petig <christof@petig-baender.de> to work around gcc bug...
Michael Meskes [Fri, 18 Mar 2005 10:01:14 +0000 (10:01 +0000)] 
Added patch by Christof Petig <christof@petig-baender.de> to work around gcc bug on powerpc and amd64.

20 years agoNeed to release buffer pins before attempting to drop files during
Tom Lane [Fri, 18 Mar 2005 05:24:24 +0000 (05:24 +0000)] 
Need to release buffer pins before attempting to drop files during
backend exit.  Per report from Bruce.

20 years agoTreat EPERM as a non-error case when checking to see if old postmaster
Tom Lane [Fri, 18 Mar 2005 03:49:19 +0000 (03:49 +0000)] 
Treat EPERM as a non-error case when checking to see if old postmaster
is still alive.  This improves our odds of not getting fooled by an
unrelated process when checking a stale lock file.  Other checks already
in place, plus one newly added in checkDataDir(), ensure that we cannot
attempt to usurp the place of a postmaster belonging to a different userid,
so there is no need to error out.  Add comments indicating the importance
of these other checks.

20 years agoBackpatch to 8.0.X, already in HEAD:
Bruce Momjian [Thu, 17 Mar 2005 17:28:59 +0000 (17:28 +0000)] 
Backpatch to 8.0.X, already in HEAD:

Allow Win32 to support the O_SYNC open flag as an wal_sync_method
method.