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)
commit8552620b8f6e390a33fb9db8df0aa7fac4805cc2
tree2a03acbf37bf3f0d7357aba22547bb39ceaf873b
parentbeb0cfdd337ed55cc979753348bb951dc212b239
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/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtree.c
src/backend/commands/vacuumlazy.c