Re: SSI and Hot Standby - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SSI and Hot Standby
Date
Msg-id 10201.1295623921@sss.pgh.pa.us
Whole thread Raw
In response to Re: SSI and Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: SSI and Hot Standby
Re: SSI and Hot Standby
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> On Fri, 2011-01-21 at 11:19 +0200, Heikki Linnakangas wrote:
>> It's not the order in which the xid was assigned that matters, but the 
>> order the transactions started and got their snapshots. The xids might 
>> be assigned a lot later, after the transactions have already read data.

> So if a read-write transaction assigns an xid before it takes a snapshot
> then we'll be OK? That seems much easier to arrange than passing chunks
> of snapshot data backwards and forwards. Optionally.

No, that idea is DOA from a performance standpoint.  We sweated blood to
avoid having to assign XIDs to read-only transactions, and we're not
going back.  If SSI requires that, SSI is not getting committed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: More detailed auth info
Next
From: Magnus Hagander
Date:
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW