]> granicus.if.org Git - postgresql/log
postgresql
14 years agoImprove sequence and sense of messages from pg_stop_backup().
Simon Riggs [Sun, 18 Apr 2010 18:44:53 +0000 (18:44 +0000)]
Improve sequence and sense of messages from pg_stop_backup().
Now doesn't report it is waiting until it actually is waiting,
plus message doesn't appear until at least 5 seconds wait, so
we avoid reporting the wait before we've given the archiver
a reasonable time to wake up and archive the file we just
created earlier in the function.
Also add new unconditional message to confirm safe completion.
Now a normal, healthy execution does not report waiting at
all, just safe completion.

14 years agoRemove some additional changes in previous commit that belong elsewhere.
Simon Riggs [Sun, 18 Apr 2010 18:17:12 +0000 (18:17 +0000)]
Remove some additional changes in previous commit that belong elsewhere.

14 years agoTune GetSnapshotData() during Hot Standby by avoiding loop
Simon Riggs [Sun, 18 Apr 2010 18:06:07 +0000 (18:06 +0000)]
Tune GetSnapshotData() during Hot Standby by avoiding loop
through normal backends. Makes code clearer also, since we
avoid various Assert()s. Performance of snapshots taken
during recovery no longer depends upon number of read-only
backends.

14 years agoProvide better guidance for adjusting shared_buffers.
Robert Haas [Fri, 16 Apr 2010 21:46:07 +0000 (21:46 +0000)]
Provide better guidance for adjusting shared_buffers.

14 years agoOn Windows, syslogger runs in two threads. The main thread processes config
Heikki Linnakangas [Fri, 16 Apr 2010 09:51:49 +0000 (09:51 +0000)]
On Windows, syslogger runs in two threads. The main thread processes config
reload and rotation signals, and a helper thread reads messages from the
pipe and writes them to the log file. However, server code isn't generally
thread-safe, so if both try to do e.g palloc()/pfree() at the same time,
bad things will happen. To fix that, use a critical section (which is like
a mutex) to enforce that only one the threads are active at a time.

14 years agoIn standby mode, suppress repeated LOG messages about a corrupt record,
Heikki Linnakangas [Fri, 16 Apr 2010 08:58:16 +0000 (08:58 +0000)]
In standby mode, suppress repeated LOG messages about a corrupt record,
which just indicates that we've reached the end of valid WAL found in
the standby.

14 years agoDocument that autovacuum cannot vacuum or analyze temporary tables.
Bruce Momjian [Fri, 16 Apr 2010 02:22:33 +0000 (02:22 +0000)]
Document that autovacuum cannot vacuum or analyze temporary tables.

14 years agoImprove punctuation
Peter Eisentraut [Thu, 15 Apr 2010 20:56:13 +0000 (20:56 +0000)]
Improve punctuation

14 years agoIP port -> TCP port
Peter Eisentraut [Thu, 15 Apr 2010 20:48:22 +0000 (20:48 +0000)]
IP port -> TCP port

backpatched to 8.1, where this first appeared

14 years agoImprove message style for messages associated with not being able to
Tom Lane [Thu, 15 Apr 2010 18:46:45 +0000 (18:46 +0000)]
Improve message style for messages associated with not being able to
identify the system time zone setting.  Per recent discussion.

14 years agoFix typo, spotted by Erik Rijkers.
Heikki Linnakangas [Thu, 15 Apr 2010 16:25:13 +0000 (16:25 +0000)]
Fix typo, spotted by Erik Rijkers.

14 years agoAdd script to enumerate the timezones in the Windows registry and compare
Magnus Hagander [Thu, 15 Apr 2010 11:00:45 +0000 (11:00 +0000)]
Add script to enumerate the timezones in the Windows registry and compare
it with the list we have in pgtz.c, showing any differences.

14 years agoUpdate XML features list
Peter Eisentraut [Thu, 15 Apr 2010 05:45:37 +0000 (05:45 +0000)]
Update XML features list

14 years agoDoc change: effect -> affect, per Robert Haas
Bruce Momjian [Thu, 15 Apr 2010 03:05:59 +0000 (03:05 +0000)]
Doc change:  effect -> affect, per Robert Haas

14 years agoFix plpgsql's exec_eval_expr() to ensure it returns a sane type OID
Tom Lane [Wed, 14 Apr 2010 23:52:10 +0000 (23:52 +0000)]
Fix plpgsql's exec_eval_expr() to ensure it returns a sane type OID
even when the expression is a query that returns no rows.

So far as I can tell, the only caller that actually fails when a garbage
OID is returned is exec_stmt_case(), which is new in 8.4 --- in all other
cases, we might make a useless trip through casting logic, but we won't
fail since the isnull flag will be set.  Hence, backpatch only to 8.4,
just in case there are apps out there that aren't expecting an error to
be thrown if the query returns more or less than one column.  (Which seems
unlikely, since the error would be thrown if the query ever did return a
row; but it's possible there's some never-exercised code out there.)

Per report from Mario Splivalo.

14 years agoFix a problem introduced by my patch of 2010-01-12 that revised the way
Tom Lane [Wed, 14 Apr 2010 21:31:11 +0000 (21:31 +0000)]
Fix a problem introduced by my patch of 2010-01-12 that revised the way
relcache reload works.  In the patched code, a relcache entry in process of
being rebuilt doesn't get unhooked from the relcache hash table; which means
that if a cache flush occurs due to sinval queue overrun while we're
rebuilding it, the entry could get blown away by RelationCacheInvalidate,
resulting in crash or misbehavior.  Fix by ensuring that an entry being
rebuilt has positive refcount, so it won't be seen as a target for removal
if a cache flush occurs.  (This will mean that the entry gets rebuilt twice
in such a scenario, but that's okay.)  It appears that the problem can only
arise within a transaction that has previously reassigned the relfilenode of
a pre-existing table, via TRUNCATE or a similar operation.  Per bug #5412
from Rusty Conover.

Back-patch to 8.2, same as the patch that introduced the problem.
I think that the failure can't actually occur in 8.2, since it lacks the
rd_newRelfilenodeSubid optimization, but let's make it work like the later
branches anyway.

Patch by Heikki, slightly editorialized on by me.

14 years agoTypo fix. Kevin Grittner.
Robert Haas [Wed, 14 Apr 2010 20:17:26 +0000 (20:17 +0000)]
Typo fix.  Kevin Grittner.

14 years agoFix minor typo in comment in xlog.c
Simon Riggs [Wed, 14 Apr 2010 10:29:07 +0000 (10:29 +0000)]
Fix minor typo in comment in xlog.c

14 years agoDoc change: anyways -> anyway; Erik Rijkers
Bruce Momjian [Wed, 14 Apr 2010 02:36:04 +0000 (02:36 +0000)]
Doc change:  anyways -> anyway; Erik Rijkers

14 years agoAllow Hot Standby to begin from a shutdown checkpoint.
Heikki Linnakangas [Tue, 13 Apr 2010 14:17:46 +0000 (14:17 +0000)]
Allow Hot Standby to begin from a shutdown checkpoint.

Patch by Simon Riggs & me

14 years agoAdd "SSD" acronym mention for solid state drive mention.
Bruce Momjian [Tue, 13 Apr 2010 14:15:25 +0000 (14:15 +0000)]
Add "SSD" acronym mention for solid state drive mention.

14 years agoFix typo.
Magnus Hagander [Tue, 13 Apr 2010 08:19:12 +0000 (08:19 +0000)]
Fix typo.

Fujii Masao

14 years agoOnly try to do a graceful disconnect if we've successfully loaded the
Magnus Hagander [Tue, 13 Apr 2010 08:16:09 +0000 (08:16 +0000)]
Only try to do a graceful disconnect if we've successfully loaded the
shared library with the disconnect function in it. Fixes segmentation
fault reported by Jeff Davis.

Fujii Masao

14 years agoRemove example of archive_command from configure section; instead have
Bruce Momjian [Mon, 12 Apr 2010 22:09:58 +0000 (22:09 +0000)]
Remove example of archive_command from configure section;  instead have
users look at the referenced section for examples, per idea from Greg
Smith.

14 years agoSpell out full archive directory specification in 'test -f' continuous
Bruce Momjian [Mon, 12 Apr 2010 19:08:28 +0000 (19:08 +0000)]
Spell out full archive directory specification in 'test -f' continuous
archiving example, per suggestion from Greg Smith.

14 years agoUpdate the location of last removed WAL segment in shared memory only
Heikki Linnakangas [Mon, 12 Apr 2010 10:40:43 +0000 (10:40 +0000)]
Update the location of last removed WAL segment in shared memory only
after actually removing one, so that if we can't remove segments because
WAL archiving is lagging behind, we don't unnecessarily forbid streaming
the old not-yet-archived segments that are still perfectly valid. Per
suggestion from Fujii Masao.

14 years agoNeed to use the start pointer of a block we read from WAL segment in
Heikki Linnakangas [Mon, 12 Apr 2010 10:18:50 +0000 (10:18 +0000)]
Need to use the start pointer of a block we read from WAL segment in
the calculation, not the end pointer, as pointed out by Fujii Masao.

14 years agoAdjust paragraph about monitoring streaming replication, now that we have
Heikki Linnakangas [Mon, 12 Apr 2010 10:01:04 +0000 (10:01 +0000)]
Adjust paragraph about monitoring streaming replication, now that we have
standby_keep_segments.

14 years agoChange the logic to decide when to delete old WAL segments, so that it
Heikki Linnakangas [Mon, 12 Apr 2010 09:52:29 +0000 (09:52 +0000)]
Change the logic to decide when to delete old WAL segments, so that it
doesn't take into account how far the WAL senders are. This way a hung
WAL sender doesn't prevent old WAL segments from being recycled/removed
in the primary, ultimately causing the disk to fill up. Instead add
standby_keep_segments setting to control how many old WAL segments are
kept in the primary. This also makes it more reliable to use streaming
replication without WAL archiving, assuming that you set
standby_keep_segments high enough.

14 years agoPerltidy run over the MSVC build system files, to clean up code formatting
Magnus Hagander [Fri, 9 Apr 2010 13:05:58 +0000 (13:05 +0000)]
Perltidy run over the MSVC build system files, to clean up code formatting
and indentation styles.

14 years agoClean up inconsistent commas
Magnus Hagander [Fri, 9 Apr 2010 11:49:51 +0000 (11:49 +0000)]
Clean up inconsistent commas

14 years agoUpdate list of Windows timezones we try to match localized names against
Magnus Hagander [Fri, 9 Apr 2010 11:46:06 +0000 (11:46 +0000)]
Update list of Windows timezones we try to match localized names against
to one that's up to date with Windows 2003R2.

14 years agoProceed to look for the next timezone when matching a localized
Magnus Hagander [Thu, 8 Apr 2010 11:25:58 +0000 (11:25 +0000)]
Proceed to look for the next timezone when matching a localized
Windows timezone name where the information in the registry is
incomplete, instead of aborting.

This fixes cases when the registry information is incomplete for
a timezone that is alphabetically before the one that is in use.

Per report from Alexander Forschner

14 years agoMake smart shutdown work in combination with Hot Standby/Streaming Replication.
Robert Haas [Thu, 8 Apr 2010 01:39:37 +0000 (01:39 +0000)]
Make smart shutdown work in combination with Hot Standby/Streaming Replication.

At present, killing the startup process does not release any locks it holds,
so we must wait to stop the startup and walreceiver processes until all
read-only backends have exited.  Without this patch, the startup and
walreceiver processes never exit, so the server gets permanently stuck in
a half-shutdown state.

Fujii Masao, with review, docs, and comment adjustments by me.

14 years agoFix to_char YYY, YY, Y format codes so that FM zero-suppression really works,
Tom Lane [Wed, 7 Apr 2010 21:41:53 +0000 (21:41 +0000)]
Fix to_char YYY, YY, Y format codes so that FM zero-suppression really works,
rather than only sort-of working as the previous attempt had left it.
Clean up some unnecessary differences between the way these were coded and
the way the YYYY case was coded.  Update the regression test cases that
proved that it wasn't working.

14 years agoAllow quotes to be escaped in recovery.conf, by doubling them. This patch
Heikki Linnakangas [Wed, 7 Apr 2010 10:58:49 +0000 (10:58 +0000)]
Allow quotes to be escaped in recovery.conf, by doubling them. This patch
also makes the parsing a little bit stricter, rejecting garbage after the
parameter value and values with missing ending quotes, for example.

14 years agoForbid using pg_xlogfile_name() and pg_xlogfile_name_offset() during
Heikki Linnakangas [Wed, 7 Apr 2010 06:12:52 +0000 (06:12 +0000)]
Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset() during
recovery. We might want to relax this in the future, but ThisTimeLineID
isn't currently correct in backends during recovery, so the filename
returned was wrong.

14 years agopsql tab completion for ALTER DEFAULT PRIVILEGES and USER MAPPING FOR PUBLIC.
Itagaki Takahiro [Wed, 7 Apr 2010 03:51:19 +0000 (03:51 +0000)]
psql tab completion for ALTER DEFAULT PRIVILEGES and USER MAPPING FOR PUBLIC.

14 years agoAdd cygwin version check before using cygwin_conv_path(),
Itagaki Takahiro [Wed, 7 Apr 2010 03:48:51 +0000 (03:48 +0000)]
Add cygwin version check before using cygwin_conv_path(),
and use cygwin_conv_to_full_win32_path() in older versions.

14 years agoLog the actual timezone name that we fail to look up the values for in
Magnus Hagander [Tue, 6 Apr 2010 20:35:11 +0000 (20:35 +0000)]
Log the actual timezone name that we fail to look up the values for in
case the registry data doesn't follow the format we expect, to facilitate
debugging.

14 years agoFurther message changes when recovery.conf parameters missing.
Simon Riggs [Tue, 6 Apr 2010 17:51:58 +0000 (17:51 +0000)]
Further message changes when recovery.conf parameters missing.

14 years agoRename "Log-streaming replication parameters" header to "Standby server
Heikki Linnakangas [Tue, 6 Apr 2010 14:53:20 +0000 (14:53 +0000)]
Rename "Log-streaming replication parameters" header to "Standby server
parameters" in recovery.conf, to match the grouping in the documentation.

Fujii Masao

14 years agoChange some debug ereports to elogs, as requested by translation team.
Simon Riggs [Tue, 6 Apr 2010 10:50:57 +0000 (10:50 +0000)]
Change some debug ereports to elogs, as requested by translation team.

14 years agoReword exclusion constriants to mention that the operator can return
Bruce Momjian [Tue, 6 Apr 2010 02:18:04 +0000 (02:18 +0000)]
Reword exclusion constriants to mention that the operator can return
false or null, per Tom.

14 years agoAssorted tab-completion improvements in psql.
Itagaki Takahiro [Mon, 5 Apr 2010 05:33:24 +0000 (05:33 +0000)]
Assorted tab-completion improvements in psql.

Add missing completions for:
- ALTER SEQUENCE name OWNER TO
- ALTER TYPE name RENAME TO
- ALTER VIEW name ALTER COLUMN
- ALTER VIEW name OWNER TO
- ALTER VIEW name SET SCHEMA

Fix wrong completions for:
- ALTER FUNCTION/AGGREGATE name (arguments) ...
    "(arguments)" has been ignored.
- ALTER ... SET SCHEMA
    "SCHEMA" has been considered as a variable name.

14 years agoExclude unwanted typedef symbols in pgindent, including FD_SET which is found on...
Andrew Dunstan [Mon, 5 Apr 2010 03:09:09 +0000 (03:09 +0000)]
Exclude unwanted typedef symbols in pgindent, including FD_SET which is found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal '*' on some platforms.

14 years agoClean up description of 9.0's incompatible changes in SIMILAR TO and
Tom Lane [Mon, 5 Apr 2010 02:46:42 +0000 (02:46 +0000)]
Clean up description of 9.0's incompatible changes in SIMILAR TO and
SQL-style substring().

14 years agoMake dmetaphone.c safe for pgindent and fussy compilers. Still to do: make it properl...
Andrew Dunstan [Mon, 5 Apr 2010 02:46:20 +0000 (02:46 +0000)]
Make dmetaphone.c safe for pgindent and fussy compilers. Still to do: make it properly encoding aware w.r.t. chars U+00C7 and U+00D1.

14 years agoUse a new API rather than a deprecated one in in cygwin.
Itagaki Takahiro [Mon, 5 Apr 2010 02:25:56 +0000 (02:25 +0000)]
Use a new API rather than a deprecated one in in cygwin.
cygwin_conv_to_full_win32_path should be replaced with cygwin_conv_path.

14 years agoArrange to remove pg_default_acl entries completely if their ACL setting
Tom Lane [Mon, 5 Apr 2010 01:58:03 +0000 (01:58 +0000)]
Arrange to remove pg_default_acl entries completely if their ACL setting
is changed to match the hard-wired default.  This avoids accumulating useless
catalog entries, and also provides a path for dropping the owning role without
using DROP OWNED BY.  Per yesterday's complaint from Jaime Casanova, the
need to use DROP OWNED BY for that is less than obvious, so providing this
alternative method might save some user frustration.

14 years agoFix updateAclDependencies() to not assume that ACL role dependencies can only
Tom Lane [Mon, 5 Apr 2010 01:09:53 +0000 (01:09 +0000)]
Fix updateAclDependencies() to not assume that ACL role dependencies can only
be added during GRANT and can only be removed during REVOKE; and fix its
callers to not lie to it about the existing set of dependencies when
instantiating a formerly-default ACL.  The previous coding accidentally failed
to malfunction so long as default ACLs contain only references to the object's
owning role, because that role is ignored by updateAclDependencies.  However
this is obviously pretty fragile, as well as being an undocumented assumption.
The new coding is a few lines longer but IMO much clearer.

14 years agoImprove phrasing of warning message for NOTIFY queue getting too full.
Tom Lane [Mon, 5 Apr 2010 00:42:24 +0000 (00:42 +0000)]
Improve phrasing of warning message for NOTIFY queue getting too full.
Per gripe from Peter.

14 years agoMinor wording improvement.
Tom Lane [Sat, 3 Apr 2010 21:46:59 +0000 (21:46 +0000)]
Minor wording improvement.

14 years ago\ddp should be recognized as such even if user appends S or + to it.
Tom Lane [Sat, 3 Apr 2010 20:55:57 +0000 (20:55 +0000)]
\ddp should be recognized as such even if user appends S or + to it.
Those options do nothing right now, but might be wanted later, and in
any case it's confusing for the command to be interpreted as \dd if
anything is appended.  Per Jaime Casanova.

14 years agoMake ecpg in line with other compilers in that it deletes its output if there was...
Michael Meskes [Sat, 3 Apr 2010 19:30:49 +0000 (19:30 +0000)]
Make ecpg in line with other compilers in that it deletes its output if there was an error processing the input file.

Work done by Zoltan.

14 years agoMessage quoting style tuning
Peter Eisentraut [Sat, 3 Apr 2010 07:53:29 +0000 (07:53 +0000)]
Message quoting style tuning

14 years agoClarify documentation of to_char EEEE pattern
Peter Eisentraut [Sat, 3 Apr 2010 07:53:02 +0000 (07:53 +0000)]
Clarify documentation of to_char EEEE pattern

14 years agoRemove unnecessary xref endterm attributes and title ids
Peter Eisentraut [Sat, 3 Apr 2010 07:23:02 +0000 (07:23 +0000)]
Remove unnecessary xref endterm attributes and title ids

The endterm attribute is mainly useful when the toolchain does not support
automatic link target text generation for a particular situation.  In  the
past, this was required by the man page tools for all reference page links,
but that is no longer the case, and it now actually gets in the way of
proper automatic link text generation.  The only remaining use cases are
currently xrefs to refsects.

14 years agoAllow for more room in the man page title, so that
Peter Eisentraut [Sat, 3 Apr 2010 07:16:05 +0000 (07:16 +0000)]
Allow for more room in the man page title, so that
"CREATE TEXT SEARCH CONFIGURATION" is not truncated.

14 years agoCheck compulsory parameters in recovery.conf in standby_mode, per docs.
Simon Riggs [Fri, 2 Apr 2010 21:50:40 +0000 (21:50 +0000)]
Check compulsory parameters in recovery.conf in standby_mode, per docs.

14 years agoClarify some behaviours of REASSIGN OWNED and DROP OWNED BY.
Simon Riggs [Fri, 2 Apr 2010 17:29:22 +0000 (17:29 +0000)]
Clarify some behaviours of REASSIGN OWNED and DROP OWNED BY.

14 years agoEnsure that contrib/pgstattuple functions respond to cancel interrupts
Tom Lane [Fri, 2 Apr 2010 16:16:51 +0000 (16:16 +0000)]
Ensure that contrib/pgstattuple functions respond to cancel interrupts
reasonably promptly, by adding CHECK_FOR_INTERRUPTS in the per-page loops.

Tatsuhito Kasahara

14 years agoUpdate a number of broken links in comments.
Magnus Hagander [Fri, 2 Apr 2010 15:21:20 +0000 (15:21 +0000)]
Update a number of broken links in comments.

Josh Kupershmidt

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.