Re: advance local xmin more aggressively - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: advance local xmin more aggressively
Date
Msg-id 1234403296.22282.14.camel@dell.linuxdev.us.dell.com
Whole thread Raw
In response to Re: advance local xmin more aggressively  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: advance local xmin more aggressively
List pgsql-hackers
On Wed, 2009-02-11 at 12:20 -0500, Tom Lane wrote: 
> You pointed out the case of opening a cursor in a read-committed
> transaction, and then closing it before end of transaction, as a
> place where your patch could hope to improve matters.  Are there
> others?  Could your application be made to close that cursor before
> opening another one (so that its set of open snapshots momentarily
> goes to zero)?  It seems like the use case for more complex
> bookkeeping for open snapshots is a tad narrow.
> 

I'm approaching this from the perspective of our system at Truviso. I
used the cursor example to illustrate the issue in normal postgresql,
but our problem isn't directly related to cursors.

I don't have a compelling use case right now for normal postgresql,
because of the reasons you mention. However, at Truviso, we have to come
up with some kind of solution to this anyway. Ideally, I'd like to make
something that's acceptable to postgres in general (meaning no
performance impact or code ugliness).

I could imagine some situations that this could be more useful in the
future. For instance, Hot Standby will increase the consequences of not
advancing xmin when it's possible to do so.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fixing Grittner's planner issues
Next
From: Robert Haas
Date:
Subject: Re: Fixing Grittner's planner issues