Re: advancing snapshot's xmin
Alvaro Herrera <alvherre@commandprompt.com>
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Gregory Stark <stark@enterprisedb.com>, Heikki Linnakangas <heikki@enterprisedb.com>, Neil Conway <neilc@samurai.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2008-03-28T14:26:34Z
Lists: 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.