Repair very-low-probability race condition between relation extension

Tom Lane <tgl@sss.pgh.pa.us>

Commit: cb0ddb62e22858938a401c8423298221528d7214
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-07T21:34:20Z
Releases: 7.2.8
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.

Files

PathChange+/−
src/backend/access/heap/hio.c modified +15 −9
src/backend/commands/vacuumlazy.c modified +24 −2