Fujii Masao wrote:
> OK. Here is the patch which supports a walsender process during recovery;
> * Change walsender so as to send the WAL written by the walreceiver
> if it has been started during recovery.
> * Kill the walsenders started during recovery at the end of recovery
> because replication cannot survive the change of timeline ID.
I think there's a race condition at the end of recovery. When the
shutdown checkpoint is written, with new TLI, doesn't a cascading
walsender try to send that to the standby as soon as it's flushed to
disk? But it won't find it in the WAL segment with the old TLI that it's
Also, when segments are restored from the archive, using
restore_command, the cascading walsender won't find them because they're
not written in pg_xlog like normal WAL segments.
In response to
pgsql-hackers by date
|Next:||From: Heikki Linnakangas||Date: 2010-01-28 08:28:26|
|Subject: Re: Streaming replication and pg_xlogfile_name()|
|Previous:||From: Heikki Linnakangas||Date: 2010-01-28 07:31:54|
|Subject: Re: Streaming replication and wal skipping|