Re: getting rid of SnapshotNow - Mailing list pgsql-hackers

From Andres Freund
Subject Re: getting rid of SnapshotNow
Date
Msg-id 20130726130153.GA9000@alap2.anarazel.de
Whole thread Raw
In response to Re: getting rid of SnapshotNow  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-07-26 08:49:38 -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > OK.  I've taken care of all remaining uses of SnapshotNow in the code
> > base.  I think we can go ahead and remove it, now.  Patch attached.
> 
> > (And there was, hopefully, much rejoicing.)
> 
> What about SnapshotSelf?

I thought about that yesterday and I think we should replace the usages
which aren't easily replaceable (constraint stuff) with an mvcc
snapshot, just one treats our transaction's current CommandId as
visible. That should be doable?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: dynamic background workers, round two
Next
From: Andres Freund
Date:
Subject: Re: getting rid of SnapshotNow