users/hanada/postgres.git
15 years agoReport test_fynsc times in tests per second, instead of total seconds.
Bruce Momjian [Sun, 4 Jul 2010 01:50:29 +0000 (01:50 +0000)]
Report test_fynsc times in tests per second, instead of total seconds.

15 years agoRemove SGML tab.
Bruce Momjian [Sat, 3 Jul 2010 22:52:25 +0000 (22:52 +0000)]
Remove SGML tab.

15 years agoDon't set recoveryLastXTime when replaying a checkpoint --- that was a bogus
Tom Lane [Sat, 3 Jul 2010 22:15:45 +0000 (22:15 +0000)]
Don't set recoveryLastXTime when replaying a checkpoint --- that was a bogus
idea from the start since the variable is only meant to track commit/abort
events.  This patch reverts the logic around the variable to what it was in
8.4, except that the value is now kept in shared memory rather than a static
variable, so that it can be reported correctly by CreateRestartPoint (which is
executed in the bgwriter).

15 years agoMake vacuum_defer_cleanup_age be PGC_SIGHUP level, since it's not sensible
Tom Lane [Sat, 3 Jul 2010 21:23:58 +0000 (21:23 +0000)]
Make vacuum_defer_cleanup_age be PGC_SIGHUP level, since it's not sensible
to have different values in different processes of the primary server.
Also put it into the "Streaming Replication" GUC category; it doesn't belong
in "Standby Servers" because you use it on the master not the standby.
In passing also correct guc.c's idea of wal_keep_segments' category.

15 years agoReplace max_standby_delay with two parameters, max_standby_archive_delay and
Tom Lane [Sat, 3 Jul 2010 20:43:58 +0000 (20:43 +0000)]
Replace max_standby_delay with two parameters, max_standby_archive_delay and
max_standby_streaming_delay, and revise the implementation to avoid assuming
that timestamps found in WAL records can meaningfully be compared to clock
time on the standby server.  Instead, the delay limits are compared to the
elapsed time since we last obtained a new WAL segment from archive or since
we were last "caught up" to WAL data arriving via streaming replication.
This avoids problems with clock skew between primary and standby, as well
as other corner cases that the original coding would misbehave in, such
as the primary server having significant idle time between transactions.
Per my complaint some time ago and considerable ensuing discussion.

Do some desultory editing on the hot standby documentation, too.

15 years agoDocument more clearly on XML namespaces inside xpath function
Bruce Momjian [Sat, 3 Jul 2010 17:21:48 +0000 (17:21 +0000)]
Document more clearly on XML namespaces inside xpath function

Nikolay Samokhvalov

15 years agoMake pg_upgrade copyrights just 2010, not 2010-2010.
Bruce Momjian [Sat, 3 Jul 2010 16:33:15 +0000 (16:33 +0000)]
Make pg_upgrade copyrights just 2010, not 2010-2010.

15 years agoAdd copyrights to pg_upgrade and pg_upgrade_tools files, per Tom.
Bruce Momjian [Sat, 3 Jul 2010 16:25:01 +0000 (16:25 +0000)]
Add copyrights to pg_upgrade and pg_upgrade_tools files, per Tom.

15 years agoAdd CVS tags to pg_upgrade and pg_upgrade_support files, per request
Bruce Momjian [Sat, 3 Jul 2010 14:23:14 +0000 (14:23 +0000)]
Add CVS tags to pg_upgrade and pg_upgrade_support files, per request
from Tom.

15 years agoAllow REASSIGNED OWNED to handle opclasses and opfamilies.
Robert Haas [Sat, 3 Jul 2010 13:53:13 +0000 (13:53 +0000)]
Allow REASSIGNED OWNED to handle opclasses and opfamilies.

Backpatch to 8.3, which is as far back as we have opfamilies.
The opclass portion could probably be backpatched to 8.2, when
REASSIGN OWNED was added, but for now I have not done that.

Asko Tiidumaa, with minor adjustments by me.

15 years agoFix assorted misstatements and poor wording in the descriptions of the I/O
Tom Lane [Sat, 3 Jul 2010 04:03:06 +0000 (04:03 +0000)]
Fix assorted misstatements and poor wording in the descriptions of the I/O
formats for geometric types.  Per bug #5536 from Jon Strait, and my own
testing.

Back-patch to all supported branches, since this doco has been wrong right
along -- we certainly haven't changed the I/O behavior of these types in
many years.

15 years agoAdditional cross-references to window functions documentation.
Robert Haas [Sat, 3 Jul 2010 02:57:46 +0000 (02:57 +0000)]
Additional cross-references to window functions documentation.

Erik Rijkers

15 years agoUnbreak MSVC builds by removing copydir.c from list of libpgport files
Andrew Dunstan [Fri, 2 Jul 2010 23:25:27 +0000 (23:25 +0000)]
Unbreak MSVC builds by removing copydir.c from list of libpgport files

15 years agoRemove hstore % text[] operator; use slice() function instead.
Robert Haas [Fri, 2 Jul 2010 20:36:49 +0000 (20:36 +0000)]
Remove hstore % text[] operator; use slice() function instead.

David Wheeler, with one small correction by me.

15 years agoMove copydir.c from src/port to src/backend/storage/file
Robert Haas [Fri, 2 Jul 2010 17:03:30 +0000 (17:03 +0000)]
Move copydir.c from src/port to src/backend/storage/file

The previous commit to make copydir() interruptible prevented
postgres.exe from linking on MinGW and Cygwin, because on those
platforms libpgport_srv.a can't freely reference symbols defined
by the backend.  Since that code is already backend-specific anyway,
just move the whole file into the backend rather than adding further
kludges to deal with the symbols needed by CHECK_FOR_INTERRUPTS().

This probably needs some further cleanup, but this commit just moves
the file as-is, which should hopefully be enough to turn the
buildfarm green again.

15 years agoIssue 'mkdir' hint when replying CREATE TABLESPACE in recovery mode.
Bruce Momjian [Fri, 2 Jul 2010 02:44:32 +0000 (02:44 +0000)]
Issue 'mkdir' hint when replying CREATE TABLESPACE in recovery mode.

Per idea from Fujii Masao

15 years agoAllow copydir() to be interrupted.
Robert Haas [Thu, 1 Jul 2010 20:12:40 +0000 (20:12 +0000)]
Allow copydir() to be interrupted.

This makes ALTER DATABASE .. SET TABLESPACE and CREATE DATABASE more
sensitive to interrupts.  Backpatch to 8.4, where ALTER DATABASE .. SET
TABLESPACE was introduced.  We could go back further, but in the absence
of complaints about the CREATE DATABASE case it doesn't seem worth it.

Guillaume Lelarge, with a small correction by me.

15 years agoGet rid of some more stuff that duplicates c.h or port.h.
Tom Lane [Thu, 1 Jul 2010 15:52:52 +0000 (15:52 +0000)]
Get rid of some more stuff that duplicates c.h or port.h.

15 years agoRemove port.h prototypes from pg_upgrade.h, per report from Robert Haas.
Bruce Momjian [Thu, 1 Jul 2010 14:37:53 +0000 (14:37 +0000)]
Remove port.h prototypes from pg_upgrade.h, per report from Robert Haas.

15 years agoAllow ALTER TABLE .. SET TABLESPACE to be interrupted.
Robert Haas [Thu, 1 Jul 2010 14:10:21 +0000 (14:10 +0000)]
Allow ALTER TABLE .. SET TABLESPACE to be interrupted.

Backpatch to 8.0, where tablespaces were introduced.

Guillaume Lelarge

15 years agoUpdate 9.0 release notes so streaming replication and hot standby is not
Bruce Momjian [Thu, 1 Jul 2010 02:33:21 +0000 (02:33 +0000)]
Update 9.0 release notes so streaming replication and hot standby is not
assumed to require continuous archiving.

Per report from Fujii Masao

15 years agostringToNode() and deparse_expression_pretty() crash on invalid input,
Heikki Linnakangas [Wed, 30 Jun 2010 18:10:23 +0000 (18:10 +0000)]
stringToNode() and deparse_expression_pretty() crash on invalid input,
but we have nevertheless exposed them to users via pg_get_expr(). It would
be too much maintenance effort to rigorously check the input, so put a hack
in place instead to restrict pg_get_expr() so that the argument must come
from one of the system catalog columns known to contain valid expressions.

Per report from Rushabh Lathia. Backpatch to 7.4 which is the oldest
supported version at the moment.

15 years agoCorrect missing/misspelled surname.
Andrew Dunstan [Wed, 30 Jun 2010 14:25:24 +0000 (14:25 +0000)]
Correct missing/misspelled surname.

15 years agoDocument that /bin/true on Windows is implemented by 'REM'.
Bruce Momjian [Wed, 30 Jun 2010 02:43:10 +0000 (02:43 +0000)]
Document that /bin/true on Windows is implemented by 'REM'.

15 years agoIn documentation, use "lower case"/"upper case" consistently (use space
Bruce Momjian [Tue, 29 Jun 2010 22:29:14 +0000 (22:29 +0000)]
In documentation, use "lower case"/"upper case" consistently (use space
between words).

15 years agoDocument that shared_preload_libraries and local_preload_libraries
Bruce Momjian [Tue, 29 Jun 2010 22:23:02 +0000 (22:23 +0000)]
Document that shared_preload_libraries and local_preload_libraries
lowercase the library names, unless double-quoted.

15 years agoAdd compatibility note warning that plpgsql is now stricter about the column
Tom Lane [Tue, 29 Jun 2010 21:20:19 +0000 (21:20 +0000)]
Add compatibility note warning that plpgsql is now stricter about the column
datatypes of composite results, per gripe from Marcel Asio.  Some desultory
copy-editing of plpgsql-related sections of the release notes.

15 years agoAdd C comment about why synchronous_commit=off behavior can lose
Bruce Momjian [Tue, 29 Jun 2010 18:44:58 +0000 (18:44 +0000)]
Add C comment about why synchronous_commit=off behavior can lose
committed transactions in a postmaster crash.

15 years agoMessage tuning
Peter Eisentraut [Tue, 29 Jun 2010 04:12:47 +0000 (04:12 +0000)]
Message tuning

15 years agoUse different function names for plpython3 handlers, to avoid clashes in