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)
commitf780356572d92b7660bdea075ab724e4b4de2186
tree447e69b9d3266efb8273dfeaebf8bb07f9149a79
parent46c8e93f439d162521ad620ba664d5f57eb70dfb
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