postgresql/src/bin
Heikki Linnakangas 2ffa66f497 Fix walsender failure at promotion.
If a standby server has a cascading standby server connected to it, it's
possible that WAL has already been sent up to the next WAL page boundary,
splitting a WAL record in the middle, when the first standby server is
promoted. Don't throw an assertion failure or error in walsender if that
happens.

Also, fix a variant of the same bug in pg_receivexlog: if it had already
received WAL on previous timeline up to a segment boundary, when the
upstream standby server is promoted so that the timeline switch record falls
on the previous segment, pg_receivexlog would miss the segment containing
the timeline switch. To fix that, have walsender send the position of the
timeline switch at end-of-streaming, in addition to the next timeline's ID.
It was previously assumed that the switch happened exactly where the
streaming stopped.

Note: this is an incompatible change in the streaming protocol. You might
get an error if you try to stream over timeline switches, if the client is
running 9.3beta1 and the server is more recent. It should be fine after a
reconnect, however.

Reported by Fujii Masao.
2013-05-08 20:30:17 +03:00
..
initdb Translation updates 2013-05-05 22:34:23 -04:00
pg_basebackup Fix walsender failure at promotion. 2013-05-08 20:30:17 +03:00
pg_config Translation updates 2013-05-05 22:34:23 -04:00
pg_controldata Translation updates 2013-05-05 22:34:23 -04:00
pg_ctl Translation updates 2013-05-05 22:34:23 -04:00
pg_dump Move materialized views' is-populated status into their pg_class entries. 2013-05-06 13:27:22 -04:00
pg_resetxlog Translation updates 2013-05-05 22:34:23 -04:00
pgevent Update copyrights for 2013 2013-01-01 17:15:01 -05:00
psql Translation updates 2013-05-05 22:34:23 -04:00
scripts Translation updates 2013-05-05 22:34:23 -04:00
Makefile Update copyrights for 2013 2013-01-01 17:15:01 -05:00