Re: is sync rep stalled? - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: is sync rep stalled?
Date
Msg-id 4CA986EE.3050801@bluegap.ch
Whole thread Raw
In response to Re: is sync rep stalled?  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: is sync rep stalled?
List pgsql-hackers
On 10/04/2010 09:18 AM, Heikki Linnakangas wrote:
> Note that this assumes that you use the 'replay' synchronization level.
> In the weaker levels, read-only queries can always return stale data.

I'm not too found of those various synchronization levels, but IIUC all
other levels only allow a rather limited staleness. But a master that's
continuing to commit new transactions with a disconnected standby that
happily continues to answer read-only queries, the age of the standby's
snapshot can grow without limitation.

> With 'replay' and hot standby combination, you'll want to set
> max_standby_archive_delay to a very low value, or a read-only query can
> cause master to stop processing commits (or the standby to stop
> accepting new queries, if that's preferred).

Well, given that DML-only transactions aren't prone such to conflicts, I
think of this as a corner case.

Also note, that this requirement seems to apply whether we wait forever
on standby failure or not. (Because even if we don't, there must be some
kind of timeout on the master from the very first suspicion to actually
declare the standby dead - anything else is called anync).

Regards

Markus Wanner


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: is sync rep stalled?
Next
From: Heikki Linnakangas
Date:
Subject: Re: is sync rep stalled?