]> granicus.if.org Git - postgresql/commit
Repair very-low-probability race condition between relation extension
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:32:53 +0000 (21:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:32:53 +0000 (21:32 +0000)
commitd6e30b0ba0028d56b555f91f524aabb65d1a8443
tree2b58de1c06327def472a6772084649f28add35ce
parentaba1f93e453cbe8efe4ef00204b5db329f803c68
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