]> granicus.if.org Git - postgresql/commit
Fix sequence creation to set the t_xmin of a sequence's tuple to
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2002 18:16:04 +0000 (18:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2002 18:16:04 +0000 (18:16 +0000)
commiteb5e8bae26b20658422f0d75e29c46b08be3d41b
treefcd98621cbeef9387981df3ab51952907375cc05
parent051a4f233f707a56130f44b4b3940eecc91c9c91
Fix sequence creation to set the t_xmin of a sequence's tuple to
FrozenTransactionId, not the XID of the creating transaction.  Without
this it's possible for a reference to a long-gone CLOG record to occur,
per Christian Meunier's bug report of 10-Jan-02.  Worse, the sequence
tuple would become invisible to SELECTs after 2 billion transactions.

Since the fix is applied during sequence creation it does not help
existing databases, unless you drop and recreate every sequence.
However, we intend to force initdb for 7.2RC1 anyway, to fix a pg_proc
error, so I see no need to do more for this problem.
src/backend/commands/sequence.c