]> 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:24 +0000 (21:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:32:24 +0000 (21:32 +0000)
commit30f540be4381d8cd4e45f8393264e1c214d0ddd7
tree411bb8bb7c0361842f2b305135bb0b44cbeb2ed2
parentb72e5fa17b7aef18c744060ede3b1afdf4021dbf
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