Re: CURRENT OF cursor without OIDs

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Ian Lance Taylor <ian@airs.com>, pgsql-hackers@postgresql.org
Date: 2001-08-09T02:09:00Z
Lists: pgsql-hackers
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> GetXmaxRecent() ignores the backend tx_old because it had been
> committed when VACUUM started and may return the xid > the
> very old xid of tx_old.

Absolutely not; things would never work if that were true.
GetXmaxRecent() returns the oldest TID that was running *when any
current transaction started*, not just VACUUM's transaction.  Thus,
no transaction that could be considered live by the cursor-holding
transaction will be considered dead by VACUUM.

			regards, tom lane