Re: advancing snapshot's xmin - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: advancing snapshot's xmin
Date
Msg-id 20080328142634.GM7464@alvh.no-ip.org
Whole thread Raw
In response to Re: advancing snapshot's xmin  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: advancing snapshot's xmin
List pgsql-hackers
Simon Riggs wrote:
> On Fri, 2008-03-28 at 10:35 -0300, Alvaro Herrera wrote:
> 
> > The problem is that we always consider every transaction's PGPROC->xid
> > in calculating MyProc->xmin.  So if you have a long running
> > transaction, it doesn't matter how far beyond the snapshots are -- the
> > value returned by GetOldestXmin will always be at most the old
> > transaction's Xid.  Even if that transaction cannot see the old rows
> > because all of its snapshots are way in the future.
> 
> It may not have a TransactionId yet.

How is this a problen?  If it ever gets one, it will be in the future.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: advancing snapshot's xmin
Next
From: Aidan Van Dyk
Date:
Subject: Re: Status of GIT mirror (Was having problem in rsync'ing cvs)