postgresql/src/include/access
Heikki Linnakangas 0b6329130e Make pg_receivexlog and pg_basebackup -X stream work across timeline switches.
This mirrors the changes done earlier to the server in standby mode. When
receivelog reaches the end of a timeline, as reported by the server, it
fetches the timeline history file of the next timeline, and restarts
streaming from the new timeline by issuing a new START_STREAMING command.

When pg_receivexlog crosses a timeline, it leaves the .partial suffix on the
last segment on the old timeline. This helps you to tell apart a partial
segment left in the directory because of a timeline switch, and a completed
segment. If you just follow a single server, it won't make a difference, but
it can be significant in more complicated scenarios where new WAL is still
generated on the old timeline.

This includes two small changes to the streaming replication protocol:
First, when you reach the end of timeline while streaming, the server now
sends the TLI of the next timeline in the server's history to the client.
pg_receivexlog uses that as the next timeline, so that it doesn't need to
parse the timeline history file like a standby server does. Second, when
BASE_BACKUP command sends the begin and end WAL positions, it now also sends
the timeline IDs corresponding the positions.
2013-01-17 20:23:00 +02:00
..
attnum.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
clog.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
genam.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gin.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gin_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gist.h Make GiST indexes on-disk compatible with 9.2 again. 2013-01-17 16:46:16 +02:00
gist_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gistscan.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
hash.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
heapam.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
heapam_xlog.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
hio.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
htup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
htup_details.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
itup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
multixact.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
nbtree.h Redesign the planner's handling of index-descent cost estimation. 2013-01-11 12:56:58 -05:00
printtup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
reloptions.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
relscan.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
rewriteheap.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
rmgr.h Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00
sdir.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
skey.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
slru.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spgist.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spgist_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
subtrans.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
sysattr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
timeline.h Make pg_receivexlog and pg_basebackup -X stream work across timeline switches. 2013-01-17 20:23:00 +02:00
transam.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupconvert.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupdesc.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupmacs.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tuptoaster.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
twophase.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
twophase_rmgr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
valid.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
visibilitymap.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xact.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlog.h Make pg_receivexlog and pg_basebackup -X stream work across timeline switches. 2013-01-17 20:23:00 +02:00
xlog_fn.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlog_internal.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlogdefs.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlogreader.h Split out XLog reading as an independent facility 2013-01-16 16:12:53 -03:00
xlogutils.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00