Re: [COMMITTERS] pgsql: If recovery_target_timeline is set to 'latest' and standby mode

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: If recovery_target_timeline is set to 'latest' and standby mode
Date: 2011-03-07 20:11:17
Message-ID: 1299528677.1696.11429.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Mon, 2011-03-07 at 19:16 +0000, Heikki Linnakangas wrote:

> 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.

This appears to rely on the existence of an archive, which isn't always
there. That isn't documented nor checked for that I can see.

If the idea is to support downstream standbys via file based replication
it should really say that. Shame it doesn't support streaming only.

There's also a comment in the code about something the admin needs to
make sure doesn't happen. That needs to be in the docs also.

--
Simon Riggs http://www.2ndQuadrant.com/books/
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-03-07 21:00:56 pgsql: Minor copy-editing in CREATE TRIGGER reference page.
Previous Message Magnus Hagander 2011-03-07 19:28:58 Re: Re: [COMMITTERS] pgsql: If recovery_target_timeline is set to 'latest' and standby mode

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2011-03-07 20:15:27 Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)
Previous Message Robert Haas 2011-03-07 20:00:24 Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)