Re: Question about RI checks - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Question about RI checks
Date
Msg-id CA+TgmoZ2==WsaRPZahnTkTR=f5625YXnrU7CohUsBO75Nv1HqA@mail.gmail.com
Whole thread Raw
In response to Re: Question about RI checks  (Florian Pflug <fgp@phlo.org>)
Responses Re: Question about RI checks
List pgsql-hackers
On Fri, Oct 24, 2014 at 1:28 PM, Florian Pflug <fgp@phlo.org> wrote:
> The only other option I see would be so teach the executor to check
> whether *any* snapshot between the transaction's snapshot and a current
> snapshot would see a different set of rows. Simply checking whether both
> the current snapshot and the transaction's snapshot see the same set isn't
> sufficient, per the counter-example in my other mail :-(

What about doing one scan using SnapshotAny and then testing each
returned row for visibility under both relevant snapshots?  See
whether there is any tuple for which they disagree.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}
Next
From: Robert Haas
Date:
Subject: Re: Typo fixes for pg_recvlogical documentation