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)
commit4091a2da55970b76da44c31c7fde1089540650da
tree905417b5738dae9a944bf11bb8bd8434a78a5205
parentcc6b798d6a35a6d1159167ef51dc3c3349f46971
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