Re: Streaming rep - why log shipping is necessary? - Mailing list pgsql-hackers

From marcin mank
Subject Re: Streaming rep - why log shipping is necessary?
Date
Msg-id b1b9fac61002250155u2b52a876h54d01ac8292e17d9@mail.gmail.com
Whole thread Raw
In response to Re: Streaming rep - why log shipping is necessary?  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Streaming rep - why log shipping is necessary?
List pgsql-hackers
On Thu, Feb 25, 2010 at 10:08 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> the standby needs to
> fall back to the archive if it falls behind so that the WAL files it
> needs have already been recycled in the master.

Oh, so the master does not have to keep track of the state of the
standbys. That`s a nice design.

> If you're adventurous enough, it's actually possible to set an
> archive_command that checks the status of the standby and returns
> failure as long as the standby still needs the given WAL segment. That
> way the primary doesn't recycle segments that are still needed by the
> standby, and you can get away without restore_command in the standby.

That would be a nice addition to pg_standby, like
pg_standby --check-streaming-standby postgres:qwerty@10.0.0.1
--check-streaming-standby postgres:qwerty@10.0.0.2:5433

Greetings
Marcin Mańk


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Recent vendor SSL renegotiation patches break PostgreSQL
Next
From: Heikki Linnakangas
Date:
Subject: Re: testing cvs HEAD - HS/SR - xlog timeline 0 pg_xlogfile_name_offset