Repair very-low-probability race condition between relation extension

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

Commit: ad12a7b9e2054813fd3f9f673f45fc1f7cca1e21
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-07T21:33:47Z
Releases: 7.3.10
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