Re: Streaming replication, retrying from archive - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Streaming replication, retrying from archive
Date
Msg-id 603c8f071001140636p2551a086w451a9bb0a96fa2c4@mail.gmail.com
Whole thread Raw
In response to Streaming replication, retrying from archive  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Streaming replication, retrying from archive  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
On Thu, Jan 14, 2010 at 9:15 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> Imagine this scenario:
>
> 1. Master is up and running, standby is connected and streaming happily
> 2. Network goes down, connection is broken.
> 3. Standby falls behind a lot. Old WAL files that the standby needs are
> archived, and deleted from master.
> 4. Network is restored. Standby reconnects
> 5. Standby will get an error because the WAL file it needs is not in the
> master anymore.
>
> What will currently happen is:
>
> 6, Standby retries connecting and failing indefinitely, until the admin
> restarts it.
>
> What we would *like* to happen is:
>
> 6. Standby fetches the missing WAL files from archive, then reconnects
> and continues streaming.
>
> Can we fix that?

Just MHO here, but this seems like a bigger project than we should be
starting at this stage of the game.

...Robert


pgsql-hackers by date:

Previous
From: Matteo Beccati
Date:
Subject: Re: mailing list archiver chewing patches
Next
From: Magnus Hagander
Date:
Subject: Re: Streaming replication, retrying from archive