Re: Switching timeline over streaming replication - Mailing list pgsql-hackers

From Joshua Berkus
Subject Re: Switching timeline over streaming replication
Date
Msg-id 1878073001.154713.1356041565895.JavaMail.root@agliodbs.com
Whole thread Raw
In response to Re: Switching timeline over streaming replication  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers

> I just committed a patch that should make the "requested WAL segment
> 000000020000000000000003 has already been removed" errors go away.
> The
> trick was for walsenders to not switch to the new timeline until at
> least one record has been replayed on it. That closes the window
> where
> the walsender already considers the new timeline to be the latest,
> but
> the WAL file has not been created yet.

OK, I'll download the snapshot in a couple days and make sure this didn't breaks something else.

--Josh



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Feature Request: pg_replication_master()
Next
From: Tom Lane
Date:
Subject: Re: pg_top