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

From Gregory Stark
Subject Re: Transaction Snapshots and Hot Standby
Date
Msg-id 87bpypobe7.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Transaction Snapshots and Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Transaction Snapshots and Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Transaction Snapshots and Hot Standby  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:

> So passing xl_xmin from master to standby seems not necessary to me. The
> standby's OldestXmin needs to be passed through to the master, not the
> other way around so that WAL records for tuple removal are not
> generated.

I think most people were pretty leery of doing it that way because it means
activity on the standby database can cause the master to bloat. The consensus
seemed to be headed towards having WAL replay on the standby stall if it meets
a tuple removal record for a tuple that's visible to a query running on it.
Probably with a mechanism to configure a maximum amount of time it can be
stalled before shooting those queries.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: no XLOG during COPY?
Next
From: Markus Wanner
Date:
Subject: Re: Review Report: propose to include 3 new functions into intarray and intagg