Re: synchronized snapshots - Mailing list pgsql-hackers

From Tom Lane
Subject Re: synchronized snapshots
Date
Msg-id 18180.1319041048@sss.pgh.pa.us
Whole thread Raw
In response to Re: synchronized snapshots  (Joachim Wieland <joe@mcknight.de>)
Responses Re: synchronized snapshots  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: synchronized snapshots  (Florian Pflug <fgp@phlo.org>)
List pgsql-hackers
Joachim Wieland <joe@mcknight.de> writes:
> [ synchronized-snapshots patch ]

Looking through this code, it strikes me that SET TRANSACTION SNAPSHOT
is fundamentally incompatible with SERIALIZABLE READ ONLY DEFERRABLE
mode.  That mode assumes that you should be able to just take a new
snapshot, repeatedly, until you get one that's "safe".  With the patch
as written, if the supplied snapshot is "unsafe", GetSafeSnapshot()
will just go into an infinite loop.

AFAICS we should just throw an error if SET TRANSACTION SNAPSHOT is done
in a transaction with those properties.  Has anyone got another
interpretation?  Would it be better to silently ignore the DEFERRABLE
property?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: new compiler warnings
Next
From: Heikki Linnakangas
Date:
Subject: Re: synchronized snapshots