]> granicus.if.org Git - postgresql/log
postgresql
14 years agoFix minor typos in comments.
Magnus Hagander [Fri, 2 Apr 2010 15:19:22 +0000 (15:19 +0000)]
Fix minor typos in comments.

Josh Kupershmidt

14 years agoFix the build and install rules for man pages with SQL section != 7
Peter Eisentraut [Fri, 2 Apr 2010 14:02:49 +0000 (14:02 +0000)]
Fix the build and install rules for man pages with SQL section != 7

The previous coding failed in various scenarios possibly including vpath
builds and doing make install without preceding make all.

14 years agoMove system startup message prior to any calls out of data directory.
Simon Riggs [Fri, 2 Apr 2010 13:10:56 +0000 (13:10 +0000)]
Move system startup message prior to any calls out of data directory.
This allows us to see what mode the server is in before it starts to
perform actions that can block or hang. Otherwise server messages
may not appear until after messages that say FATAL the database
server is starting up.

14 years agoFATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
Michael Meskes [Fri, 2 Apr 2010 10:27:45 +0000 (10:27 +0000)]
FATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
corrupted. This error, however, does is not a compilation problem but a runtime
one, so we can keep compiling but still have to declare ERROR.

14 years agoDon't pass an invalid file handle to dup2(). That causes a crash on
Heikki Linnakangas [Thu, 1 Apr 2010 20:12:22 +0000 (20:12 +0000)]
Don't pass an invalid file handle to dup2(). That causes a crash on
Windows, thanks to a feature in CRT called Parameter Validation.

Backpatch to 8.2, which is the oldest version supported on Windows. In
8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead of
NULL_DEV #define for a /dev/null-like device. NULL_DEV was hard-coded to
"/dev/null" regardless of platform, which didn't work on Windows, while
DEVNULL works on all platforms. Restarting syslogger didn't work on
Windows on versions 8.3 and below because of that.

14 years agoUse a file of patterns of filenames to exclude from pgindent runs, instead if using...
Andrew Dunstan [Thu, 1 Apr 2010 14:44:39 +0000 (14:44 +0000)]
Use a file of patterns of filenames to exclude from pgindent runs, instead if using multiple invocations of egrep. Add perl ppport.h to the current list.

14 years agoChange test -e to test -f in docs, for portability.
Bruce Momjian [Thu, 1 Apr 2010 13:52:56 +0000 (13:52 +0000)]
Change test -e to test -f in docs, for portability.

14 years agoZoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get...
Michael Meskes [Thu, 1 Apr 2010 10:30:53 +0000 (10:30 +0000)]
Zoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get an error message instead of a warning if the variable have different types.

14 years agoApplied Zoltan's patch to make ecpg spit out warnings if a local variable hides a...
Michael Meskes [Thu, 1 Apr 2010 08:41:01 +0000 (08:41 +0000)]
Applied Zoltan's patch to make ecpg spit out warnings if a local variable hides a global one with the same name.

14 years agoAdd contraint exclusion section to contraint docs. REL9_0_ALPHA5
Bruce Momjian [Thu, 1 Apr 2010 01:18:17 +0000 (01:18 +0000)]
Add contraint exclusion section to contraint docs.

Takahiro Itagaki

14 years agoRefer to max_wal_senders in a more consistent fashion.
Robert Haas [Thu, 1 Apr 2010 00:43:29 +0000 (00:43 +0000)]
Refer to max_wal_senders in a more consistent fashion.

The error message now makes explicit reference to the GUC that must be changed
to fix the problem, using wording suggested by Tom Lane.  Along the way,
rename the GUC from MaxWalSenders to max_wal_senders for consistency and
grep-ability.

14 years agoAdd full names for release note item authors.
Bruce Momjian [Thu, 1 Apr 2010 00:32:53 +0000 (00:32 +0000)]
Add full names for release note item authors.

14 years agoUse test -e rather than test -f.
Bruce Momjian [Thu, 1 Apr 2010 00:31:00 +0000 (00:31 +0000)]
Use test -e rather than test -f.

14 years agoImprove 9.0 release notes by removing extra parentheses and linking to a
Bruce Momjian [Thu, 1 Apr 2010 00:18:21 +0000 (00:18 +0000)]
Improve 9.0 release notes by removing extra parentheses and linking to a
more appropriate place for exclusion constraints.

14 years agoRevert change that prevented ellipses from looking like ../.
Bruce Momjian [Wed, 31 Mar 2010 23:51:41 +0000 (23:51 +0000)]
Revert change that prevented ellipses from looking like ../.

14 years agoClarify ellipses use in archive_command example, per Josh Kupershmidt.
Bruce Momjian [Wed, 31 Mar 2010 23:39:15 +0000 (23:39 +0000)]
Clarify ellipses use in archive_command example, per Josh Kupershmidt.

14 years agoDocument why 'cp -i </dev/null' is suggested for archive command.
Bruce Momjian [Wed, 31 Mar 2010 23:35:19 +0000 (23:35 +0000)]
Document why 'cp -i </dev/null' is suggested for archive command.

14 years agoFix typos, spotted by Thom Brown.
Heikki Linnakangas [Wed, 31 Mar 2010 20:41:50 +0000 (20:41 +0000)]
Fix typos, spotted by Thom Brown.

14 years agoEnhance standby documentation.
Heikki Linnakangas [Wed, 31 Mar 2010 20:35:09 +0000 (20:35 +0000)]
Enhance standby documentation.

Original patch by Fujii Masao, with heavy editing and bitrot-fixing
after my other commit.

14 years agoMention in the docs that if special keywords like "sameuser" and
Heikki Linnakangas [Wed, 31 Mar 2010 20:18:10 +0000 (20:18 +0000)]
Mention in the docs that if special keywords like "sameuser" and
"replication" are quoted in pg_hba.conf, they lose their special meaning.

14 years agoEnhance documentation of the build-in standby mode, explaining the retry
Heikki Linnakangas [Wed, 31 Mar 2010 19:13:01 +0000 (19:13 +0000)]
Enhance documentation of the build-in standby mode, explaining the retry
loop in standby mode, trying to restore from archive, pg_xlog and
streaming.

Move sections around to make the high availability chapter more
coherent: the most prominent part is now a "Log-Shipping Standby Servers"
section that describes what a standby server is (like the old
"Warm Standby Servers for High Availability" section), and how to
set up a warm standby server, including streaming replication, using the
built-in standby mode. The pg_standby method is desribed in another
section called "Alternative method for log shipping", with the added
caveat that it doesn't work with streaming replication.

14 years agoChange recovery.conf.sample to match postgresql.conf by showing only
Bruce Momjian [Wed, 31 Mar 2010 14:18:45 +0000 (14:18 +0000)]
Change recovery.conf.sample to match postgresql.conf by showing only
default values, with example comments.

14 years agoGive a more precise error message if a variable is re-used as cursor name in ecpg.
Michael Meskes [Wed, 31 Mar 2010 08:45:18 +0000 (08:45 +0000)]
Give a more precise error message if a variable is re-used as cursor name in ecpg.

14 years agoFix "constraint_exclusion = partition" logic so that it will also attempt
Tom Lane [Tue, 30 Mar 2010 21:58:11 +0000 (21:58 +0000)]
Fix "constraint_exclusion = partition" logic so that it will also attempt
constraint exclusion on an inheritance set that is the target of an UPDATE
or DELETE query.  Per gripe from Marc Cousin.  Back-patch to 8.4 where
the feature was introduced.

14 years agoChange the retry-loop in standby mode to also try restoring files from
Heikki Linnakangas [Tue, 30 Mar 2010 16:23:57 +0000 (16:23 +0000)]
Change the retry-loop in standby mode to also try restoring files from
pg_xlog directory. This is essential for replaying WAL records that
were streamed from the master, after a standby server restart.

If a corrupt record is seen in a file restored from the archive or
streamed from the master, log it as a WARNING and keep retrying. If the
corruption is permanent, and not just a glitch in the whatever copies the
files to the archive or a network error not caught by CRC checks in TCP
for example, we will keep retrying and logging the WARNING indefinitely.
But that's better than shutting down completely, the standby is still
useful for running read-only queries. In PITR the recovery ends at such a
corrupt record, which is a bit questionable, but that's the behavior we
had in previous releases and we don't feel like chaning it now. It does
make sense for tools like pg_standby.

14 years agoMessage tuning
Peter Eisentraut [Tue, 30 Mar 2010 16:08:22 +0000 (16:08 +0000)]
Message tuning

14 years agoProperly initialize local varaible in
Bruce Momjian [Tue, 30 Mar 2010 13:46:09 +0000 (13:46 +0000)]
Properly initialize local varaible in
btree_xlog_delete_get_latestRemovedXid().  This variable was only tested
in assert builds.

14 years agoAdd comma missing from postgresql.conf comment.
Bruce Momjian [Tue, 30 Mar 2010 00:11:45 +0000 (00:11 +0000)]
Add comma missing from postgresql.conf comment.

14 years agoSeparate targets "make docs" and "make install-docs" for the documentation
Peter Eisentraut [Tue, 30 Mar 2010 00:10:46 +0000 (00:10 +0000)]
Separate targets "make docs" and "make install-docs" for the documentation

It is no longer installed by default, but included in "make world"/"make
install-world".  Documentation updated accordingly.

Also, fix vpathsearch function to work when calling make install-docs
without previous make docs.

14 years agoAdd note that XML Schema validation is not supported
Peter Eisentraut [Mon, 29 Mar 2010 22:01:08 +0000 (22:01 +0000)]
Add note that XML Schema validation is not supported

requested by Andrew Lardinois

14 years agoAdd some information about what it means for PL/Python to be untrusted.
Peter Eisentraut [Mon, 29 Mar 2010 21:35:59 +0000 (21:35 +0000)]
Add some information about what it means for PL/Python to be untrusted.
Similar information already appears in the PL/Perl and PL/Tcl chapters.

14 years agoAdd some documentation about PL/Python limitations
Peter Eisentraut [Mon, 29 Mar 2010 21:20:58 +0000 (21:20 +0000)]
Add some documentation about PL/Python limitations

suggested by Steve White (bug #5272)

14 years agoEdit recovery.conf.sample so it matches docs. Change standby_mode
Simon Riggs [Mon, 29 Mar 2010 18:50:36 +0000 (18:50 +0000)]
Edit recovery.conf.sample so it matches docs. Change standby_mode
example to 'on or 'off' rather than 'true' or 'false', as shown
in docs. Add restartpoint_command. Add section header for recovery
target parameters, matching docs.

14 years agoRework join-removal logic as per recent discussion. In particular this
Tom Lane [Sun, 28 Mar 2010 22:59:34 +0000 (22:59 +0000)]
Rework join-removal logic as per recent discussion.  In particular this
fixes things so that it works for cases where nested removals are possible.
The overhead of the optimization should be significantly less, as well.

14 years agoDerive latestRemovedXid for btree deletes by reading heap pages. The
Simon Riggs [Sun, 28 Mar 2010 09:27:02 +0000 (09:27 +0000)]
Derive latestRemovedXid for btree deletes by reading heap pages. The
WAL record for btree delete contains a list of tids, even when backup
blocks are present. We follow the tids to their heap tuples, taking
care to follow LP_REDIRECT tuples. We ignore LP_DEAD tuples on the
understanding that they will always have xmin/xmax earlier than any
LP_NORMAL tuples referred to by killed index tuples. Iff all tuples
are LP_DEAD we return InvalidTransactionId. The heap relfilenode is
added to the WAL record, requiring API changes to pass down the heap
Relation. XLOG_PAGE_MAGIC updated.

14 years agoFlush CopyOutResponse when starting streaming in walsender, so that it's
Heikki Linnakangas [Fri, 26 Mar 2010 12:23:34 +0000 (12:23 +0000)]
Flush CopyOutResponse when starting streaming in walsender, so that it's
not delayed until the first WAL record is sent.

Fujii Masao

14 years agoModify some new and pre-existing messages for translatability.
Simon Riggs [Thu, 25 Mar 2010 20:40:17 +0000 (20:40 +0000)]
Modify some new and pre-existing messages for translatability.

14 years agoFix ginint4_queryextract() to actually do what it was intended to do for an
Tom Lane [Thu, 25 Mar 2010 15:50:10 +0000 (15:50 +0000)]
Fix ginint4_queryextract() to actually do what it was intended to do for an
unsatisfiable query, such as indexcol && empty_array.  It should return -1
to tell GIN no scan is required; but silly typo disabled the logic for that,
resulting in unnecessary "GIN indexes do not support whole-index scans" error.
Per bug report from Jeff Trout.

Back-patch to 8.3 where the logic was introduced.

14 years agoPrevent ALTER USER f RESET ALL from removing the settings that were put there
Alvaro Herrera [Thu, 25 Mar 2010 14:44:34 +0000 (14:44 +0000)]
Prevent ALTER USER f RESET ALL from removing the settings that were put there
by a superuser -- "ALTER USER f RESET setting" already disallows removing such a
setting.

Apply the same treatment to ALTER DATABASE d RESET ALL when run by a database
owner that's not superuser.

14 years agoAdditional thoughts on WALSender cpu reduction. Use long type
Simon Riggs [Wed, 24 Mar 2010 21:41:57 +0000 (21:41 +0000)]
Additional thoughts on WALSender cpu reduction. Use long type
and alter a comment to reduce confusion.

14 years agoChange replication connection log format to allow for a database
Simon Riggs [Wed, 24 Mar 2010 21:25:50 +0000 (21:25 +0000)]
Change replication connection log format to allow for a database
called replication. Add host and port details, following format
of messages in BackendInitialize().

14 years agoReduce CPU utilisation of WALSender process. Process was using 10% CPU
Simon Riggs [Wed, 24 Mar 2010 20:11:12 +0000 (20:11 +0000)]
Reduce CPU utilisation of WALSender process. Process was using 10% CPU
doing nothing, caused by naptime specified in milliseconds yet units of
pg_usleep() parameter is microseconds. Correctly specifying units
reduces call frequency by 1000. Reduction in CPU consumption verified.

14 years agoFix thinko in log message for "sameuser" ident map mismatch: the provided
Tom Lane [Wed, 24 Mar 2010 17:05:45 +0000 (17:05 +0000)]
Fix thinko in log message for "sameuser" ident map mismatch: the provided
and authenticated usernames were swapped.  Reported by Bryan Henderson
in bug #5386.

Also clean up poorly-maintained header comment for this function.

14 years agoNow that we know last_statrequest > last_statwrite can be observed in the
Tom Lane [Wed, 24 Mar 2010 16:07:10 +0000 (16:07 +0000)]
Now that we know last_statrequest > last_statwrite can be observed in the
buildfarm, expend a little more effort on the log message for it.

14 years agoMark "installcheck-parallel", "world", "install-world" and "installcheck-world"...
Andrew Dunstan [Wed, 24 Mar 2010 13:14:02 +0000 (13:14 +0000)]
Mark  "installcheck-parallel", "world", "install-world" and "installcheck-world" make targets as PHONY. Fujii Masao.

14 years agoUpdate description of walrcv_receive() function to match reality.
Heikki Linnakangas [Wed, 24 Mar 2010 06:25:39 +0000 (06:25 +0000)]
Update description of walrcv_receive() function to match reality.

14 years agoDocument in postgresql.conf that the max_standby_delay default is 30
Bruce Momjian [Wed, 24 Mar 2010 03:13:45 +0000 (03:13 +0000)]
Document in postgresql.conf that the max_standby_delay default is 30
'seconds'.

14 years agoTypo fix from IRC breinbaas
Bruce Momjian [Tue, 23 Mar 2010 22:37:14 +0000 (22:37 +0000)]
Typo fix from IRC breinbaas

14 years agoRemove useless double assignment
Peter Eisentraut [Tue, 23 Mar 2010 22:12:06 +0000 (22:12 +0000)]
Remove useless double assignment

GCC 4.5 complained about it.

14 years agoRemove CRs for each line in pgbench.sgml.
Itagaki Takahiro [Tue, 23 Mar 2010 04:09:17 +0000 (04:09 +0000)]
Remove CRs for each line in pgbench.sgml.

14 years agoAdd back other xlog() function author names.
Bruce Momjian [Tue, 23 Mar 2010 02:28:48 +0000 (02:28 +0000)]
Add back other xlog() function author names.

14 years agoEach worker thread will have its own log file in pgbench to avoid interleaved
Itagaki Takahiro [Tue, 23 Mar 2010 01:29:22 +0000 (01:29 +0000)]
Each worker thread will have its own log file in pgbench to avoid interleaved
writes. The first worker still uses "pgbench_log.<pid>" for the name, but
additional workers use "pgbench_log.<pid>.<serial-number>" instead.

Reported by Greg Smith.

14 years agoProperly credit Simon for functions pg_last_xlog_replay_location, etc.
Bruce Momjian [Mon, 22 Mar 2010 22:56:52 +0000 (22:56 +0000)]
Properly credit Simon for functions pg_last_xlog_replay_location, etc.

14 years agoFix regression test breakage from recent change in default name of exclusion-constrai...
Tom Lane [Mon, 22 Mar 2010 17:43:28 +0000 (17:43 +0000)]
Fix regression test breakage from recent change in default name of exclusion-constraint index.

14 years agoShorten suffix of automatically created indexes to "_excl" when using
Simon Riggs [Mon, 22 Mar 2010 15:24:11 +0000 (15:24 +0000)]
Shorten suffix of automatically created indexes to "_excl" when using
exclusion constraints, in line with string length of other pre-9.0 suffixes.

14 years agoRe-order createuser and vacuumedb documentation options, for
Bruce Momjian [Mon, 22 Mar 2010 14:56:09 +0000 (14:56 +0000)]
Re-order createuser and vacuumedb documentation options, for
consistency.

Gabrielle (Roth)

14 years agoFix an oversight in join-removal optimization: we have to check not only for
Tom Lane [Mon, 22 Mar 2010 13:57:16 +0000 (13:57 +0000)]
Fix an oversight in join-removal optimization: we have to check not only for
plain Vars that are generated in the inner rel and used above the join, but
also for PlaceHolderVars.  Per report from Oleg K.

14 years agoFixed ECPG regression test to make sure it uses absolute paths for include
Michael Meskes [Mon, 22 Mar 2010 07:41:20 +0000 (07:41 +0000)]
Fixed ECPG regression test to make sure it uses absolute paths for include
files instead of relative ones which break vpath builds.

14 years agoRemove 9.0 release notes xref's to HISTORY.html can be built.
Bruce Momjian [Sun, 21 Mar 2010 22:12:27 +0000 (22:12 +0000)]
Remove 9.0 release notes xref's to HISTORY.html can be built.

Document this restriction.

14 years agoAdding special command line option that is now needed for the one ecpg regression...
Michael Meskes [Sun, 21 Mar 2010 14:26:58 +0000 (14:26 +0000)]
Adding special command line option that is now needed for the one ecpg regression test that was changed.

14 years agoECPG's parser now accepts and handles variables as arguments for the FREE command.
Michael Meskes [Sun, 21 Mar 2010 11:56:45 +0000 (11:56 +0000)]
ECPG's parser now accepts and handles variables as arguments for the FREE command.

Informix allows variables as argument to the embedded SQL command FREE. Given
that we only allow freeing cursors via FREE for compatibility reasons only we
should do the same.

14 years agoAdjusted regression test results to the change I made in debug output for ecpglib.
Michael Meskes [Sun, 21 Mar 2010 11:38:16 +0000 (11:38 +0000)]
Adjusted regression test results to the change I made in debug output for ecpglib.

14 years agoCorrectly name functions in debug output in ecpglib. When the functions were
Michael Meskes [Sun, 21 Mar 2010 11:33:44 +0000 (11:33 +0000)]
Correctly name functions in debug output in ecpglib. When the functions were
refactored the debug output wasn't adjusted.

14 years agoECPG only copied #include statements instead of processing them according to
Michael Meskes [Sun, 21 Mar 2010 10:49:52 +0000 (10:49 +0000)]
ECPG only copied #include statements instead of processing them according to
commandline option "-i". This change fixes this and adds a test case. It also
honors #include_next, although this is probably never used for embedded SQL.

14 years agoAdd more 9.0 release note documentation links.
Bruce Momjian [Sun, 21 Mar 2010 02:24:29 +0000 (02:24 +0000)]
Add more 9.0 release note documentation links.

14 years agoAdd links to documentation sections in 9.0 release notes.
Bruce Momjian [Sun, 21 Mar 2010 00:43:40 +0000 (00:43 +0000)]
Add links to documentation sections in 9.0 release notes.

Also update tagging instructions, and add id tags to a few documentation
sections.

14 years agoMessage tuning
Peter Eisentraut [Sun, 21 Mar 2010 00:17:59 +0000 (00:17 +0000)]
Message tuning

14 years agoFixed ecpg parser to allow more than one C preprocessor command inside a declare...
Michael Meskes [Sat, 20 Mar 2010 18:53:00 +0000 (18:53 +0000)]
Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.

14 years agoIn 9.0 release notes, move libpq/ecpg up into their own sections, like I
Bruce Momjian [Sat, 20 Mar 2010 16:31:09 +0000 (16:31 +0000)]
In 9.0 release notes, move libpq/ecpg up into their own sections, like I
did with server-side languages.

14 years agoMove server-side languages up one section in the 9.0 release notes.
Bruce Momjian [Sat, 20 Mar 2010 14:03:31 +0000 (14:03 +0000)]
Move server-side languages up one section in the 9.0 release notes.

14 years agoFurther corrections of mismatching struct and btree SizeOf macros.
Simon Riggs [Sat, 20 Mar 2010 07:49:48 +0000 (07:49 +0000)]
Further corrections of mismatching struct and btree SizeOf macros.
In this case, correction is to remove now unused fields from struct.
Since these were unused and full of garbage anyway, no version change.

14 years agoCreate 9.0 release notes; keep 9.0-alpha release notes in place.
Bruce Momjian [Sat, 20 Mar 2010 03:30:12 +0000 (03:30 +0000)]
Create 9.0 release notes;  keep 9.0-alpha release notes in place.

14 years agoUpdate sgml release note markup suggestions.
Bruce Momjian [Sat, 20 Mar 2010 03:12:52 +0000 (03:12 +0000)]
Update sgml release note markup suggestions.

14 years agoClear error_context_stack and debug_query_string at the beginning of proc_exit,
Tom Lane [Sat, 20 Mar 2010 00:58:09 +0000 (00:58 +0000)]
Clear error_context_stack and debug_query_string at the beginning of proc_exit,
so that we won't try to attach any context printouts to messages that get
emitted while exiting.  Per report from Dennis Koegel, the context functions
won't necessarily work after we've started shutting down the backend, and it
seems possible that debug_query_string could be pointing at freed storage
as well.  The context information doesn't seem particularly relevant to
such messages anyway, so there's little lost by suppressing it.

Back-patch to all supported branches.  I can only demonstrate a crash with
log_disconnections messages back to 8.1, but the risk seems real in 8.0 and
before anyway.

14 years agoForbid renaming columns of objects whose column names are system-generated.
Robert Haas [Sat, 20 Mar 2010 00:43:42 +0000 (00:43 +0000)]
Forbid renaming columns of objects whose column names are system-generated.

KaiGai Kohei, with adjustments to the comments.

14 years agoModify error context callback functions to not assume that they can fetch
Tom Lane [Fri, 19 Mar 2010 22:54:41 +0000 (22:54 +0000)]
Modify error context callback functions to not assume that they can fetch
catalog entries via SearchSysCache and related operations.  Although, at the
time that these callbacks are called by elog.c, we have not officially aborted
the current transaction, it still seems rather risky to initiate any new
catalog fetches.  In all these cases the needed information is readily
available in the caller and so it's just a matter of a bit of extra notation
to pass it to the callback.

Per crash report from Dennis Koegel.  I've concluded that the real fix for
his problem is to clear the error context stack at entry to proc_exit, but
it still seems like a good idea to make the callbacks a bit less fragile
for other cases.

Backpatch to 8.4.  We could go further back, but the patch doesn't apply
cleanly.  In the absence of proof that this fixes something and isn't just
paranoia, I'm not going to expend the effort.

14 years agoFix oversight in btpo.xact patch; it was in fact installing garbage
Tom Lane [Fri, 19 Mar 2010 20:51:30 +0000 (20:51 +0000)]
Fix oversight in btpo.xact patch; it was in fact installing garbage
in the xact field on replay, due to not writing out all the data in
the wal log struct.

14 years agoClarify docs about database parameter in streaming replication primary_conninfo.
Simon Riggs [Fri, 19 Mar 2010 19:31:06 +0000 (19:31 +0000)]
Clarify docs about database parameter in streaming replication primary_conninfo.
Docs were unclear on whether or not database=replication was required,
nor did they mention the FATAL error this causes if database parameter is
mentioned explicitly, whatever its value.

14 years agoAdd connection messages for streaming replication. log_connections
Simon Riggs [Fri, 19 Mar 2010 19:19:38 +0000 (19:19 +0000)]
Add connection messages for streaming replication. log_connections
was broken for a replication connection and no messages were
displayed on either standby or primary, at any debug level.
Connection messages needed to diagnose session drop/reconnect
events. Use LOG mode for now, discuss lowering in later releases.

14 years agoMinor tweaks on libpqrcv_connect(): ensure conninfo_repl[] is
Simon Riggs [Fri, 19 Mar 2010 17:51:42 +0000 (17:51 +0000)]
Minor tweaks on libpqrcv_connect(): ensure conninfo_repl[] is
correctly sized and expand comment to explain otherwise
undocumented use of replication connection parameter.

14 years agoUpdate XLOG_PAGE_MAGIC to recognise WAL format changes.
Simon Riggs [Fri, 19 Mar 2010 17:42:10 +0000 (17:42 +0000)]
Update XLOG_PAGE_MAGIC to recognise WAL format changes.

14 years agoAdjust comment in .history file to match recovery target specified. Comment
Simon Riggs [Fri, 19 Mar 2010 11:05:15 +0000 (11:05 +0000)]
Adjust comment in .history file to match recovery target specified. Comment
present since 8.0 was never fully meaningful, since two recovery targets
cannot be specified. Refactor recovery target type to make this change
and associated code easier to understand. No change in function.

Bug report arising from internal support question.

14 years agoReset btpo.xact following recovery of btree delete page. Add btpo_xact
Simon Riggs [Fri, 19 Mar 2010 10:41:22 +0000 (10:41 +0000)]
Reset btpo.xact following recovery of btree delete page. Add btpo_xact
field into WAL record and reset it from there, rather than using
FrozenTransactionId which can lead to some corner case bugs.

Problem report and suggested route to a fix from Heikki, details by me.

14 years agoAlso print the libpq error message when lo_create or lo_open fails
Peter Eisentraut [Thu, 18 Mar 2010 20:00:51 +0000 (20:00 +0000)]
Also print the libpq error message when lo_create or lo_open fails

14 years agoPrevent the injection of invalidly encoded strings by PL/Python into PostgreSQL
Peter Eisentraut [Thu, 18 Mar 2010 19:43:03 +0000 (19:43 +0000)]
Prevent the injection of invalidly encoded strings by PL/Python into PostgreSQL
with a few strategically placed pg_verifymbstr calls.

14 years agoMessage style tuning
Peter Eisentraut [Thu, 18 Mar 2010 19:02:46 +0000 (19:02 +0000)]
Message style tuning

14 years agoMention way to get commit details for release notes.
Bruce Momjian [Thu, 18 Mar 2010 16:31:12 +0000 (16:31 +0000)]
Mention way to get commit details for release notes.

14 years agoFix missing parentheses for current_query(), per bug #5378.
Tom Lane [Thu, 18 Mar 2010 15:29:44 +0000 (15:29 +0000)]
Fix missing parentheses for current_query(), per bug #5378.
Also make a couple other minor editorial improvements.

14 years agoUse data-type specific conversion functions also in plpy.execute
Peter Eisentraut [Thu, 18 Mar 2010 13:23:57 +0000 (13:23 +0000)]
Use data-type specific conversion functions also in plpy.execute

In PLy_spi_execute_plan, use the data-type specific Python-to-PostgreSQL
conversion function instead of passing everything through InputFunctionCall
as a string.  The equivalent fix was already done months ago for function
parameters and return values, but this other gateway between Python and
PostgreSQL was apparently forgotten.  As a result, data types that need
special treatment, such as bytea, would misbehave when used with
plpy.execute.

14 years agoAdd restartpoint_command option to recovery.conf. Fix bug in %r handling
Heikki Linnakangas [Thu, 18 Mar 2010 09:17:18 +0000 (09:17 +0000)]
Add restartpoint_command option to recovery.conf. Fix bug in %r handling
in recovery_end_command, it always came out as 0 because InRedo was
cleared before recovery_end_command was executed. Also, always take
ControlFileLock when reading checkpoint location for %r.

The recovery_end_command bug and the missing locking was present in 8.4
as well, that part of this patch will be backported separately.

14 years agoAdd vacuum_defer_cleanup_age to postgresql.conf.sample.
Simon Riggs [Thu, 18 Mar 2010 07:01:01 +0000 (07:01 +0000)]
Add vacuum_defer_cleanup_age to postgresql.conf.sample.

14 years agoDon't link PL/Python against LOCALMODLIBS
Peter Eisentraut [Wed, 17 Mar 2010 22:02:44 +0000 (22:02 +0000)]
Don't link PL/Python against LOCALMODLIBS

This variable is apparently only for Python internally.  In newer releases
of Python this variable pulls in more and more libraries that users are
less likely to have, leading to potential build failures.

14 years agoMessage style tuning
Peter Eisentraut [Wed, 17 Mar 2010 21:31:17 +0000 (21:31 +0000)]
Message style tuning

14 years agoFix peculiar, untranslatable message concatenation attempt
Peter Eisentraut [Wed, 17 Mar 2010 20:58:38 +0000 (20:58 +0000)]
Fix peculiar, untranslatable message concatenation attempt

14 years agoMake typography consistent
Peter Eisentraut [Wed, 17 Mar 2010 20:53:19 +0000 (20:53 +0000)]
Make typography consistent

14 years agoTypo fixes.
Magnus Hagander [Wed, 17 Mar 2010 18:03:55 +0000 (18:03 +0000)]
Typo fixes.

Fujii Masao

14 years agoUpdate broken and permanently moved links
Peter Eisentraut [Wed, 17 Mar 2010 17:12:31 +0000 (17:12 +0000)]
Update broken and permanently moved links

14 years agoPass incompletely-transformed aggregate argument lists as separate parameters
Tom Lane [Wed, 17 Mar 2010 16:52:38 +0000 (16:52 +0000)]
Pass incompletely-transformed aggregate argument lists as separate parameters
to transformAggregateCall, instead of abusing fields in Aggref to carry them
temporarily.  No change in functionality but hopefully the code is a bit
clearer now.  Per gripe from Gokulakannan Somasundaram.

14 years agoFix incorrect example in CREATE INDEX reference page, per Josh Kupershmidt.
Tom Lane [Wed, 17 Mar 2010 15:55:50 +0000 (15:55 +0000)]
Fix incorrect example in CREATE INDEX reference page, per Josh Kupershmidt.
Also fix and uncomment an old example of creating a GIST index, and make
a couple of other minor editorial adjustments.

14 years agoFix typo in streaming replication protocol docs.
Simon Riggs [Wed, 17 Mar 2010 00:28:15 +0000 (00:28 +0000)]
Fix typo in streaming replication protocol docs.