Re: Transaction Snapshots and Hot Standby - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Transaction Snapshots and Hot Standby
Date
Msg-id b42b73150809110510m1cced7ccy71c3e83781dc914c@mail.gmail.com
Whole thread Raw
In response to Re: Transaction Snapshots and Hot Standby  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Transaction Snapshots and Hot Standby
List pgsql-hackers
On Thu, Sep 11, 2008 at 7:18 AM, Gregory Stark <stark@enterprisedb.com> wrote:
> a) transactions with live snapshots on the slave prevent the master from being
>   able to vacuum tuples (which defeats the purpose of having a live standby
>   server for some users).
>
> or
>
> b) vacuum on the server which cleans up a tuple the slave has in scope has to
>   block WAL reply on the slave (which I suppose defeats the purpose of having
>   a live standby for users concerned more with fail-over latency).

There is nothing stopping you from setting up two (or more) slave
servers, with one designated as failover that doens't serve queries,
right?  Option b seems pretty reasonable to me, although I'd prefer to
block wal replay vs canceling queries...although it might be nice to
manually be able to force wal replay 'with query cancel' via a
checkpoint.

merlin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Interesting glitch in autovacuum
Next
From: Heikki Linnakangas
Date:
Subject: Re: New FSM patch