]> 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:33:21 +0000 (21:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 7 May 2005 21:33:21 +0000 (21:33 +0000)
commit0053e290d9e7b4046101b6c093710a30c2786a9f
tree039631ac5254bafed7c22d40af152502209d0a04
parent501ec7b64c25c8fd595020e02f1cb939f176b30c
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