postgresql/src/backend
Heikki Linnakangas 1a4ab9ec23 If recovery_target_timeline is set to 'latest' and standby mode is enabled,
periodically rescan the archive for new timelines, while waiting for new WAL
segments to arrive. This allows you to set up a standby server that follows
the TLI change if another standby server is promoted to master. Before this,
you had to restart the standby server to make it notice the new timeline.

This patch only scans the archive for TLI changes, it won't follow a TLI
change in streaming replication. That is much needed too, but it would be a
much bigger patch than I dare to sneak in this late in the release cycle.

There was discussion on improving the sanity checking of the WAL segments so
that the system would notice more reliably if the new timeline isn't an
ancestor of the current one, but that is not included in this patch.

Reviewed by Fujii Masao.
2011-03-07 21:14:47 +02:00
..
access If recovery_target_timeline is set to 'latest' and standby mode is enabled, 2011-03-07 21:14:47 +02:00
bootstrap Per-column collation support 2011-02-08 23:04:18 +02:00
catalog Efficient transaction-controlled synchronous replication. 2011-03-06 22:49:16 +00:00
commands Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
executor Rearrange snapshot handling to make rule expansion more consistent. 2011-02-28 23:28:06 -05:00
foreign Implement an API to let foreign-data wrappers actually be functional. 2011-02-20 00:18:14 -05:00
lib Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
libpq Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
main Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
nodes Allow non-superusers to create (some) extensions. 2011-03-04 16:08:53 -05:00
optimizer Support data-modifying commands (INSERT/UPDATE/DELETE) in WITH. 2011-02-25 18:58:02 -05:00
parser Allow non-superusers to create (some) extensions. 2011-03-04 16:08:53 -05:00
po Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
port Be less detailed about reporting shared memory failure by avoiding the 2011-02-27 12:21:58 -05:00
postmaster Zero out vacuum_count and related counters in pgstat_recv_tabstat(). 2011-03-07 11:17:47 -05:00
regex Fix comparisons of pointers with zero to compare with NULL instead. 2010-10-29 15:51:52 -04:00
replication Silence compiler warning about undefined function when compiling without 2011-03-07 09:56:53 +02:00
rewrite Support data-modifying commands (INSERT/UPDATE/DELETE) in WITH. 2011-02-25 18:58:02 -05:00
snowball Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
storage Efficient transaction-controlled synchronous replication. 2011-03-06 22:49:16 +00:00
tcop Run a portal's cleanup hook immediately when pushing it to DONE state. 2011-03-03 13:04:06 -05:00
tsearch Fix tsmatchsel() to account properly for null rows. 2011-02-17 19:00:49 -05:00
utils Efficient transaction-controlled synchronous replication. 2011-03-06 22:49:16 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.mk Workaround for recursive make breakage 2011-01-13 09:32:06 +02:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
nls.mk Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00