Re: SnapshotResetXmin - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: SnapshotResetXmin
Date
Msg-id 1232127386.31669.63.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: SnapshotResetXmin  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, 2009-01-16 at 12:13 -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Simon Riggs wrote:
> >> SnapshotResetXmin is called 3 times after each statement in
> >> ReadCommitted mode.
> 
> > Maybe we could check whether TransState is not TRANS_INPROGRESS and skip
> > it in those cases ...?
> 
> Surely this would take longer than the function itself does.  What's
> the point of worrying at all?

I thought it *might* be indicative of over zealous coding, thats all.

Better a false-positive than to miss a possible issue. 

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Question regarding new windowing functions in 8.4devel
Next
From: Tom Lane
Date:
Subject: Re: FWD: Re: Updated backslash consistency patch