]> granicus.if.org Git - postgresql/log
postgresql
14 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.

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

14 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'.

14 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).

14 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.

14 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.

14 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.

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

14 years agoUse different function names for plpython3 handlers, to avoid clashes in
Peter Eisentraut [Tue, 29 Jun 2010 00:18:11 +0000 (00:18 +0000)]
Use different function names for plpython3 handlers, to avoid clashes in
pg_pltemplate

This should have a catversion bump, but it's still being debated whether
it's worth it during beta.

14 years agoAdd note clarifying that XML fragments don't accept DTDs
Peter Eisentraut [Tue, 29 Jun 2010 00:03:39 +0000 (00:03 +0000)]
Add note clarifying that XML fragments don't accept DTDs

per complaint from Craig Ringer

14 years agoFix doc double-wording in non-durable patch.
Bruce Momjian [Mon, 28 Jun 2010 22:46:11 +0000 (22:46 +0000)]
Fix doc double-wording in non-durable patch.

Report from Thom Brown

14 years agoAdd new Non-Durable Settings documentation section.
Bruce Momjian [Mon, 28 Jun 2010 21:57:17 +0000 (21:57 +0000)]
Add new Non-Durable Settings documentation section.

Document that synchronous_commit can lose transactions in a db crash,
not just a OS crash.

14 years agoemode_for_corrupt_record shouldn't reduce LOG messages to WARNING.
Robert Haas [Mon, 28 Jun 2010 19:46:19 +0000 (19:46 +0000)]
emode_for_corrupt_record shouldn't reduce LOG messages to WARNING.

In non-interactive sessions, WARNING sorts below LOG.

14 years agoAdd guidelines for formatting errcontext strings
Peter Eisentraut [Mon, 28 Jun 2010 17:48:26 +0000 (17:48 +0000)]
Add guidelines for formatting errcontext strings

14 years agoRemove tab from SGML.
Bruce Momjian [Mon, 28 Jun 2010 12:30:32 +0000 (12:30 +0000)]
Remove tab from SGML.

14 years agoImprove pg_dump's checkSeek() function to verify the functioning of ftello
Tom Lane [Mon, 28 Jun 2010 02:07:02 +0000 (02:07 +0000)]
Improve pg_dump's checkSeek() function to verify the functioning of ftello
as well as fseeko, and to not assume that fseeko(fp, 0, SEEK_CUR) proves
anything.  Also improve some related comments.  Per my observation that
the SEEK_CUR test didn't actually work on some platforms, and subsequent
discussion with Robert Haas.

Back-patch to 8.4.  In earlier releases it's not that important whether
we get the hasSeek test right, but with parallel restore it matters.

14 years agoFix pg_restore so parallel restore doesn't fail when the input file doesn't
Tom Lane [Sun, 27 Jun 2010 19:07:24 +0000 (19:07 +0000)]
Fix pg_restore so parallel restore doesn't fail when the input file doesn't
contain data offsets (which it won't, if pg_dump thought its output wasn't
seekable).  To do that, remove an unnecessarily aggressive error check, and
instead fail if we get to the end of the archive without finding the desired
data item.  Also improve the error message to be more specific about the
cause of the problem.  Per discussion of recent report from Igor Neyman.

Back-patch to 8.4 where parallel restore was introduced.

14 years agoRewrite docs for new libpq keepalive parameters.
Robert Haas [Fri, 25 Jun 2010 17:08:09 +0000 (17:08 +0000)]
Rewrite docs for new libpq keepalive parameters.

The revised documentation makes it more clear that these are client-side
parameters, rather than server side parameters.  It also puts the main
point of each parameter first, and consolidates the conditions under which
it might be ignored in a single list at the end.

14 years agoMake AIX suggestions about disabling ipv6 more version-sensitive.
Robert Haas [Fri, 25 Jun 2010 16:55:49 +0000 (16:55 +0000)]
Make AIX suggestions about disabling ipv6 more version-sensitive.

Chris Browne, based on a report from John Pierce.

14 years agoFix thinko in tok_is_keyword(): it was looking at the wrong union variant
Tom Lane [Fri, 25 Jun 2010 16:40:13 +0000 (16:40 +0000)]
Fix thinko in tok_is_keyword(): it was looking at the wrong union variant
of YYSTYPE, and hence returning the wrong answer for cases where a plpgsql
"unreserved keyword" really does conflict with a variable name.  Obviously
I didn't test this enough :-(.  Per bug #5524 from Peter Gagarinov.

14 years agoFix log_temp_files docs and comments to say bytes not kilobytes.
Simon Riggs [Fri, 25 Jun 2010 13:11:25 +0000 (13:11 +0000)]
Fix log_temp_files docs and comments to say bytes not kilobytes.
stat(2) field st_size returns bytes not kilobytes.
Bug found during recent performance tuning for PostgreSQL user.

14 years agoSome copy-editing of the Hot Standby documentation.
Robert Haas [Thu, 24 Jun 2010 19:50:25 +0000 (19:50 +0000)]
Some copy-editing of the Hot Standby documentation.

Thanks to Joshua Tolley for the review.

14 years agoFurther 9.0 release notes updates.
Robert Haas [Thu, 24 Jun 2010 18:33:05 +0000 (18:33 +0000)]
Further 9.0 release notes updates.

Josh Berkus

14 years agoAdd stray "else" that seems to have gone missing.
Robert Haas [Thu, 24 Jun 2010 16:40:45 +0000 (16:40 +0000)]
Add stray "else" that seems to have gone missing.

14 years agoMention that when alter rewrites a table, indexes are also rebuilt.
Bruce Momjian [Thu, 24 Jun 2010 14:57:21 +0000 (14:57 +0000)]
Mention that when alter rewrites a table, indexes are also rebuilt.

14 years agoAdd TCP keepalive support to libpq.
Robert Haas [Wed, 23 Jun 2010 21:54:13 +0000 (21:54 +0000)]
Add TCP keepalive support to libpq.

This adds four additional connection parameters to libpq: keepalives,
keepalives_idle, keepalives_count, and keepalives_interval.
keepalives default to on, per discussion, but can be turned off by
specifying keepalives=0.  The remaining parameters, where supported,
can be used to adjust how often keepalives are sent and how many
can be lost before the connection is broken.

The immediate motivation for this patch is to make sure that
walreceiver will eventually notice if the master reboots without
closing the connection cleanly, but it should be helpful in other
cases as well.

Tollef Fog Heen, Fujii Masao, and me.

14 years agoAdd username designations to all pg_upgrade utility calls that support it.
Bruce Momjian [Wed, 23 Jun 2010 20:04:50 +0000 (20:04 +0000)]
Add username designations to all pg_upgrade utility calls that support it.

14 years agoFix pg_upgrade's use of pg_ctl on Win32 to not send command and sever
Bruce Momjian [Tue, 22 Jun 2010 16:45:10 +0000 (16:45 +0000)]
Fix pg_upgrade's use of pg_ctl on Win32 to not send command and sever
output to the same file, because it is impossible.

Also set user name for pg_dumpall in pg_upgrade.

14 years agoUpdate pg_ctl docs to explain server output behavior differences on
Bruce Momjian [Tue, 22 Jun 2010 16:19:36 +0000 (16:19 +0000)]
Update pg_ctl docs to explain server output behavior differences on
win32 and non-win32 platforms.

14 years agoUpdated expected-output file for hstore.
Robert Haas [Tue, 22 Jun 2010 12:54:22 +0000 (12:54 +0000)]
Updated expected-output file for hstore.

This is an oversight in my previous patch to deprecate => as an operator
name.  Per buildfarm.

14 years agoDeprecate the use of => as an operator name.
Robert Haas [Tue, 22 Jun 2010 11:36:16 +0000 (11:36 +0000)]
Deprecate the use of => as an operator name.

In HEAD, emit a warning when an operator named => is defined.
In both HEAD and the backbranches (except in 8.2, where contrib
modules do not have documentation), document that hstore's text =>
text operator may be removed in a future release, and encourage the
use of the hstore(text, text) function instead.  This function only
exists in HEAD (previously, it was called tconvert), so backpatch
it back to 8.2, when hstore was added.  Per discussion.

14 years agoMinor markup improvements for Hot Standby documentation.
Robert Haas [Tue, 22 Jun 2010 02:57:50 +0000 (02:57 +0000)]
Minor markup improvements for Hot Standby documentation.

14 years agoIn a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
Heikki Linnakangas [Mon, 21 Jun 2010 09:47:29 +0000 (09:47 +0000)]
In a PL/pgSQL "FOR cursor" statement, the statements executed in the loop
might close the cursor,  rendering the Portal pointer to it invalid.
Closing the cursor in the middle of the loop is not a very sensible thing
to do, but we must handle it gracefully and throw an error instead of
crashing.

14 years agoFix mishandling of whole-row Vars referencing a view or sub-select.
Tom Lane [Mon, 21 Jun 2010 00:14:48 +0000 (00:14 +0000)]
Fix mishandling of whole-row Vars referencing a view or sub-select.
If such a Var appeared within a nested sub-select, we failed to translate it
correctly during pullup of the view, because the recursive call to
replace_rte_variables_mutator was looking for the wrong sublevels_up value.
Bug was introduced during the addition of the PlaceHolderVar mechanism.
Per bug #5514 from Marcos Castedo.

14 years agoRename hstore => text[] operator to %
Robert Haas [Fri, 18 Jun 2010 03:52:03 +0000 (03:52 +0000)]
Rename hstore => text[] operator to %

This is not yet in any released version, so we still have the option to
change the name.  We may want to reserve the token => in a future release.

14 years agoClean up some randomness associated with trace_recovery_messages: don't
Tom Lane [Thu, 17 Jun 2010 17:44:40 +0000 (17:44 +0000)]
Clean up some randomness associated with trace_recovery_messages: don't
put the variable declaration in the middle of a bunch of externs,
and do use extern where it should be used.

14 years agoMake RemoveOldXlogFiles's debug printout match style used elsewhere:
Tom Lane [Thu, 17 Jun 2010 17:37:23 +0000 (17:37 +0000)]
Make RemoveOldXlogFiles's debug printout match style used elsewhere:
log and seg aren't an XLogRecPtr and shouldn't be printed like one.
Fujii Masao

14 years agoClean up pg_archivecleanup's error and logging output: put newlines in
Tom Lane [Thu, 17 Jun 2010 17:31:27 +0000 (17:31 +0000)]
Clean up pg_archivecleanup's error and logging output: put newlines in
sane places, make messages follow project's message style guidelines.

Also, avoid closedir(NULL).

Fujii Masao and Tom Lane

14 years agoAdd missing close brackets in old-style COPY syntax diagram.
Tom Lane [Thu, 17 Jun 2010 17:03:57 +0000 (17:03 +0000)]
Add missing close brackets in old-style COPY syntax diagram.
Spotted by Evan Carroll.

14 years agoDon't allow walsender to send WAL data until it's been safely fsync'd on the
Tom Lane [Thu, 17 Jun 2010 16:41:25 +0000 (16:41 +0000)]
Don't allow walsender to send WAL data until it's been safely fsync'd on the
master.  Otherwise a subsequent crash could cause the master to lose WAL that
has already been applied on the slave, resulting in the slave being out of
sync and soon corrupt.  Per recent discussion and an example from Robert Haas.

Fujii Masao

14 years agoFix typo, init => int, per KOIZUMI Satoru.
Tom Lane [Thu, 17 Jun 2010 16:03:30 +0000 (16:03 +0000)]
Fix typo, init => int, per KOIZUMI Satoru.

14 years agoDocument that receive location can rewind if replication restarts.
Robert Haas [Thu, 17 Jun 2010 01:32:09 +0000 (01:32 +0000)]
Document that receive location can rewind if replication restarts.

Fujii Masao, with some further wordsmithing by me.

14 years agoRemove prototype of GetOldestWALSendPointer(), that is marked as NOT_USED.
Itagaki Takahiro [Thu, 17 Jun 2010 00:06:34 +0000 (00:06 +0000)]
Remove prototype of GetOldestWALSendPointer(), that is marked as NOT_USED.

14 years agoFix pg_upgrade to remove malloc(0) call.
Bruce Momjian [Wed, 16 Jun 2010 19:43:11 +0000 (19:43 +0000)]
Fix pg_upgrade to remove malloc(0) call.

14 years agoUpdate doc description for 9.0 release note item:
Bruce Momjian [Wed, 16 Jun 2010 18:46:18 +0000 (18:46 +0000)]
Update doc description for 9.0 release note item:

      Have <command>SELECT</> and <command>CREATE TABLE AS</> return
      row counts to the client

14 years ago9.0 release notes updates.
Bruce Momjian [Wed, 16 Jun 2010 18:31:39 +0000 (18:31 +0000)]
9.0 release notes updates.

Josh Berkus

14 years agoRemove perl symbol table additions for plperl functions, and mention of it
Andrew Dunstan [Wed, 16 Jun 2010 14:50:34 +0000 (14:50 +0000)]
Remove perl symbol table additions for plperl functions, and mention of it
in the release notes, as it is not apparently providing anything useful.

14 years agoAdd notes that CREATE/DROP CONVERSION is similar to CREATE/DROP
Peter Eisentraut [Wed, 16 Jun 2010 02:12:51 +0000 (02:12 +0000)]
Add notes that CREATE/DROP CONVERSION is similar to CREATE/DROP
TRANSLATION in the SQL standard.

14 years agoRefactor sprintf calls with computed format strings into multiple calls with
Peter Eisentraut [Wed, 16 Jun 2010 00:54:16 +0000 (00:54 +0000)]
Refactor sprintf calls with computed format strings into multiple calls with
constant format strings, so that the compiler can more easily check the
formats for correctness.

14 years agoFix storage of getopt() return, should be 'int', for pg_upgrade.
Bruce Momjian [Tue, 15 Jun 2010 23:25:01 +0000 (23:25 +0000)]
Fix storage of getopt() return, should be 'int', for pg_upgrade.

Steve Singer

14 years agoChange the interpretation of the primary_key_attnums parameter of
Tom Lane [Tue, 15 Jun 2010 20:29:01 +0000 (20:29 +0000)]
Change the interpretation of the primary_key_attnums parameter of
dblink_build_sql_insert() and related functions.  Now the column numbers
are treated as logical not physical column numbers.  This will provide saner
behavior in the presence of dropped columns; furthermore, if we ever get
around to allowing rearrangement of logical column ordering, the original
definition would become nearly untenable from a usability standpoint.
Per recent discussion of dblink's handling of dropped columns.
Not back-patched for fear of breaking existing applications.

14 years agoClarify SELECT FOR UPDATE behavior in docs.
Bruce Momjian [Tue, 15 Jun 2010 20:04:53 +0000 (20:04 +0000)]
Clarify SELECT FOR UPDATE behavior in docs.

14 years agoRemove hstore's text[] => text[] operator.
Robert Haas [Tue, 15 Jun 2010 19:48:30 +0000 (19:48 +0000)]
Remove hstore's text[] => text[] operator.

This is not yet in any released version, so we still have the option to
backtrack.  Instead, document hstore(text[], text[]).  Per discussion.

14 years agoFix dblink_build_sql_insert() and related functions to handle dropped
Tom Lane [Tue, 15 Jun 2010 19:04:15 +0000 (19:04 +0000)]
Fix dblink_build_sql_insert() and related functions to handle dropped
columns correctly.  In passing, get rid of some dead logic in the
underlying get_sql_insert() etc functions --- there is no caller that
will pass null value-arrays to them.

Per bug report from Robert Voinea.

14 years agoDocument new 9.0 behavior of ANALYZE on inheritance hierarchies.
Robert Haas [Tue, 15 Jun 2010 18:43:35 +0000 (18:43 +0000)]
Document new 9.0 behavior of ANALYZE on inheritance hierarchies.

In particular, note that autovacuum does not yet understand that it might
need to vacuum inheritance parents as a result of changes to the child
tables.

14 years agoConsolidate and improve checking of key-column-attnum arguments for
Tom Lane [Tue, 15 Jun 2010 16:22:19 +0000 (16:22 +0000)]
Consolidate and improve checking of key-column-attnum arguments for
dblink_build_sql_insert() and related functions.  In particular, be sure to
reject references to dropped and out-of-range column numbers.  The numbers
are still interpreted as physical column numbers, though, for backward
compatibility.

This patch replaces Joe's patch of 2010-02-03, which handled only some aspects
of the problem.

14 years agoUnbreak MSVC builds for pg_archivecleanup by linking with libpgport
Andrew Dunstan [Tue, 15 Jun 2010 12:48:36 +0000 (12:48 +0000)]
Unbreak MSVC builds for pg_archivecleanup by linking with libpgport

14 years agoAdd new GUC categories corresponding to sections in docs, and move
Itagaki Takahiro [Tue, 15 Jun 2010 07:52:11 +0000 (07:52 +0000)]
Add new GUC categories corresponding to sections in docs, and move
description for vacuum_defer_cleanup_age to the correct category.
Sections in postgresql.conf are also sorted in the same order with docs.

Per gripe by Fujii Masao, suggestion by Heikki Linnakangas, and patch by me.

14 years agoProperly define pg_upgrade global variable, per bug report from Chris
Bruce Momjian [Tue, 15 Jun 2010 02:08:01 +0000 (02:08 +0000)]
Properly define pg_upgrade global variable, per bug report from Chris
Ruprecht on Mac (64 bit).

14 years agoRearrange dblink's dblink_build_sql_insert() and related routines to open and
Tom Lane [Mon, 14 Jun 2010 20:49:33 +0000 (20:49 +0000)]
Rearrange dblink's dblink_build_sql_insert() and related routines to open and
lock the target relation just once per SQL function call.  The original coding
obtained and released lock several times per call.  Aside from saving a
not-insignificant number of cycles, this eliminates possible race conditions
if someone tries to modify the relation's schema concurrently.  Also
centralize locking and permission-checking logic.

Problem noted while investigating a trouble report from Robert Voinea --- his
problem is still to be fixed, though.

14 years agoFix doc plperl doc with is -> are change.
Bruce Momjian [Mon, 14 Jun 2010 18:47:05 +0000 (18:47 +0000)]
Fix doc plperl doc with is -> are change.

14 years agoDocs for pg_archivecleanup
Simon Riggs [Mon, 14 Jun 2010 17:25:24 +0000 (17:25 +0000)]
Docs for pg_archivecleanup

14 years agoFiles for pg_archivecleanup
Simon Riggs [Mon, 14 Jun 2010 16:19:24 +0000 (16:19 +0000)]
Files for pg_archivecleanup

14 years agoNew contrib module for use as an archive_cleanup_command, or as a
Simon Riggs [Mon, 14 Jun 2010 16:17:56 +0000 (16:17 +0000)]
New contrib module for use as an archive_cleanup_command, or as a
standalone utility for removing files from archive.

14 years agoFix typo in Japanese translation for psql "Use \d+ to list them."
Itagaki Takahiro [Mon, 14 Jun 2010 08:54:35 +0000 (08:54 +0000)]
Fix typo in Japanese translation for psql "Use \d+ to list them."

14 years agoIf a corrupt WAL record is received by streaming replication, disconnect
Heikki Linnakangas [Mon, 14 Jun 2010 06:04:21 +0000 (06:04 +0000)]
If a corrupt WAL record is received by streaming replication, disconnect
and retry. If the record is genuinely corrupt in the master database,
there's little hope of recovering, but it's better than simply retrying
to apply the corrupt WAL record in a tight loop without even trying to
retransmit it, which is what we used to do.

14 years agoFix misplaced modifier.
Robert Haas [Mon, 14 Jun 2010 02:18:43 +0000 (02:18 +0000)]
Fix misplaced modifier.

As suggested by Ian Barwick.

14 years agoFix typo.
Robert Haas [Mon, 14 Jun 2010 01:07:41 +0000 (01:07 +0000)]
Fix typo.

14 years agoRemove max_standby_delay message from ps display of recovery process
Itagaki Takahiro [Mon, 14 Jun 2010 00:49:24 +0000 (00:49 +0000)]
Remove max_standby_delay message from ps display of recovery process
in waiting status. The parameter is not so interesting in ps display
because it is referable in postgresql.conf.

14 years agoFix ALTER LARGE OBJECT and GRANT ... ON LARGE OBJECT for large OIDs.
Robert Haas [Sun, 13 Jun 2010 17:43:13 +0000 (17:43 +0000)]
Fix ALTER LARGE OBJECT and GRANT ... ON LARGE OBJECT for large OIDs.

The previous coding failed for OIDs too large to be represented by
a signed integer.

14 years agopostgres.txt should get cleaned by 'make clean'.
Tom Lane [Sat, 12 Jun 2010 21:40:31 +0000 (21:40 +0000)]
postgres.txt should get cleaned by 'make clean'.

14 years agoUpdate pg_upgrade C comment about cwd.
Bruce Momjian [Sat, 12 Jun 2010 17:45:28 +0000 (17:45 +0000)]
Update pg_upgrade C comment about cwd.

14 years agoAdd missing --use-existing --help mention from regression binary.
Bruce Momjian [Sat, 12 Jun 2010 17:21:29 +0000 (17:21 +0000)]
Add missing --use-existing --help mention from regression binary.

Jan Urba?ski

14 years agoRemove lynx -stdin flag for postgres.text.
Bruce Momjian [Sat, 12 Jun 2010 17:17:25 +0000 (17:17 +0000)]
Remove lynx -stdin flag for postgres.text.

14 years agoHave pg_upgrade create its output files in the current directory, rather
Bruce Momjian [Sat, 12 Jun 2010 17:05:29 +0000 (17:05 +0000)]
Have pg_upgrade create its output files in the current directory, rather
than in a subdirectory of the $HOME directory, or $TMP in Windows.

14 years agoAdd SGML Makefile rule for single-page text, postgres.txt.
Bruce Momjian [Sat, 12 Jun 2010 15:58:38 +0000 (15:58 +0000)]
Add SGML Makefile rule for single-page text, postgres.txt.

14 years agoAdd space between after ">" in ">$@" in SGML Makefile, for clarity.
Bruce Momjian [Sat, 12 Jun 2010 15:42:44 +0000 (15:42 +0000)]
Add space between after ">" in ">$@" in SGML Makefile, for clarity.

14 years agoAdd target to build HTML documentation as single page
Peter Eisentraut [Sat, 12 Jun 2010 09:55:12 +0000 (09:55 +0000)]
Add target to build HTML documentation as single page

14 years agoFix typo/bug, found by Clang compiler
Peter Eisentraut [Sat, 12 Jun 2010 09:14:52 +0000 (09:14 +0000)]
Fix typo/bug, found by Clang compiler

14 years agoUpdate Python version information
Peter Eisentraut [Sat, 12 Jun 2010 06:05:48 +0000 (06:05 +0000)]
Update Python version information

14 years agoAdd a regression test case for bug #5497
Peter Eisentraut [Sat, 12 Jun 2010 06:05:20 +0000 (06:05 +0000)]
Add a regression test case for bug #5497

14 years agoAdd missing 'Z' letter to getopt_long call --- the newly added
Tom Lane [Fri, 11 Jun 2010 23:58:24 +0000 (23:58 +0000)]
Add missing 'Z' letter to getopt_long call --- the newly added
--analyze-only switch did not work in its short form -Z.

Josh Berkus

14 years agoUse "replication" as the database name when constructing a connection
Heikki Linnakangas [Fri, 11 Jun 2010 10:13:09 +0000 (10:13 +0000)]
Use "replication" as the database name when constructing a connection
string for a streaming replication connection. It's ignored by the
server, but allows libpq to pick up the password from .pgpass where
"replication" is specified as the database name.

Patch by Fujii Masao per Tom's suggestion, with some wording changes by me.

14 years agoUpdate text of 9.0 release notes
Bruce Momjian [Thu, 10 Jun 2010 21:48:28 +0000 (21:48 +0000)]
Update text of 9.0 release notes

Josh Berkus

14 years agoRename restartpoint_command to archive_cleanup_command.
Itagaki Takahiro [Thu, 10 Jun 2010 08:13:50 +0000 (08:13 +0000)]
Rename restartpoint_command to archive_cleanup_command.

14 years agoMake TriggerFile variable static. It's not used outside xlog.c.
Heikki Linnakangas [Thu, 10 Jun 2010 07:49:23 +0000 (07:49 +0000)]
Make TriggerFile variable static. It's not used outside xlog.c.

Fujii Masao

14 years agoReturn NULL instead of 0/0 in pg_last_xlog_receive_location() and
Heikki Linnakangas [Thu, 10 Jun 2010 07:00:27 +0000 (07:00 +0000)]
Return NULL instead of 0/0 in pg_last_xlog_receive_location() and
pg_last_xlog_replay_location(). Per Robert Haas's suggestion, after
Itagaki Takahiro pointed out an issue in the docs. Also, some wording
changes in the docs by me.

14 years agoFix quite-bogus handling of arrays in plpython datum-to-PyObject
Tom Lane [Thu, 10 Jun 2010 04:05:01 +0000 (04:05 +0000)]
Fix quite-bogus handling of arrays in plpython datum-to-PyObject
conversion.  Per bug #5497 from David Gardner.

14 years agoQuote all string values in EXPLAIN (FORMAT YAML) output.
Robert Haas [Thu, 10 Jun 2010 01:26:30 +0000 (01:26 +0000)]
Quote all string values in EXPLAIN (FORMAT YAML) output.

While my previous attempt seems to always produce valid YAML, it
doesn't always produce YAML that means what it appears to mean,
because of tokens like "0xa" and "true", which without quotes will
be interpreted as integer or Boolean literals.  So, instead, just
quote everything that's not known to be a number, as we do for
JSON.

Dean Rasheed, with some changes to the comments by me.

14 years agoRemove stray word from comment.
Robert Haas [Wed, 9 Jun 2010 21:14:28 +0000 (21:14 +0000)]
Remove stray word from comment.

14 years agoUpdate ALTER TABLE docs to account for exclusion and deferrable uniqueness
Alvaro Herrera [Wed, 9 Jun 2010 17:48:10 +0000 (17:48 +0000)]
Update ALTER TABLE docs to account for exclusion and deferrable uniqueness
constraints

Dean Rasheed

14 years agoAdd index entry for ::, per complaint from John Gage.
Alvaro Herrera [Wed, 9 Jun 2010 16:43:47 +0000 (16:43 +0000)]
Add index entry for ::, per complaint from John Gage.

14 years agoIn standby mode, respect checkpoint_segments in addition to
Heikki Linnakangas [Wed, 9 Jun 2010 15:04:07 +0000 (15:04 +0000)]
In standby mode, respect checkpoint_segments in addition to
checkpoint_timeout to trigger restartpoints. We used to deliberately only
do time-based restartpoints, because if checkpoint_segments is small we
would spend time doing restartpoints more often than really necessary.
But now that restartpoints are done in bgwriter, they're not as
disruptive as they used to be. Secondly, because streaming replication
stores the streamed WAL files in pg_xlog, we want to clean it up more
often to avoid running out of disk space when checkpoint_timeout is large
and checkpoint_segments small.

Patch by Fujii Masao, with some minor changes by me.

14 years agoMake the walwriter close it's handle to an old xlog segment if it's no longer
Magnus Hagander [Wed, 9 Jun 2010 10:54:45 +0000 (10:54 +0000)]
Make the walwriter close it's handle to an old xlog segment if it's no longer
the current one. Not doing this would leave the walwriter with a handle to a
deleted file if there was nothing for it to do for a long period of time,
preventing the file from  being completely removed.

Reported by Tollef Fog Heen, and thanks to Heikki for some hand-holding with
the patch.

14 years agoAvoid "identifier will be truncated" warning in dblink
Itagaki Takahiro [Wed, 9 Jun 2010 03:39:26 +0000 (03:39 +0000)]
Avoid "identifier will be truncated" warning in dblink
when connection string is longer than NAMEDATALEN.
The previous fix for long connection name broke the behavior.

14 years agoAttempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.
Robert Haas [Wed, 9 Jun 2010 02:39:34 +0000 (02:39 +0000)]
Attempt to fix EXPLAIN (FORMAT YAML) quoting to behave sanely.

The previous code failed to quote in many cases where quoting was necessary -
YAML has loads of special characters, including -:[]{},"'|*& - so quote much
more aggressively, and only refrain from quoting things where it seems fairly
clear that it isn't necessary.

Per report from Dean Rasheed.

14 years agoFix connection leak in dblink when dblink_connect() or dblink_connect_u()
Itagaki Takahiro [Wed, 9 Jun 2010 00:56:02 +0000 (00:56 +0000)]
Fix connection leak in dblink when dblink_connect() or dblink_connect_u()
end with "duplicate connection name" errors.

Backported to release 7.4.

14 years agoFix typo in the header comment. Per request from Masao Fujii.
Tatsuo Ishii [Wed, 9 Jun 2010 00:54:39 +0000 (00:54 +0000)]
Fix typo in the header comment. Per request from Masao Fujii.

14 years agoMake procedural language handler reference C-language function docs.
Robert Haas [Tue, 8 Jun 2010 20:12:59 +0000 (20:12 +0000)]
Make procedural language handler reference C-language function docs.

Based on suggestions from Jonathan Leto and Joshua Tolley.

14 years agoAvoid useless snprintf() call when update_process_title is turned off.
Tom Lane [Mon, 7 Jun 2010 15:49:30 +0000 (15:49 +0000)]
Avoid useless snprintf() call when update_process_title is turned off.
Fujii Masao