]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Repair very-low-probability race condition between relation extension
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:34:20 +0000 (21:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:34:20 +0000 (21:34 +0000)
commitcb0ddb62e22858938a401c8423298221528d7214
tree56a8ab19e18e309f77fc8e61f9861b5b0d4bdf1a
parent2e6482493a2446a488550545e0d1dd6b1a79c70b
Repair very-low-probability race condition between relation extension
and VACUUM: in the interval between adding a new page to the relation
and formatting it, it was possible for VACUUM to come along and decide
it should format the page too.  Though not harmful in itself, this would
cause data loss if a third transaction were able to insert tuples into
the vacuumed page before the original extender got control back.
src/backend/access/heap/hio.c
src/backend/commands/vacuumlazy.c