]> granicus.if.org Git - postgresql/commit
Take exclusive buffer lock in scan_heap() to eliminate some corner cases
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Sep 2005 17:32:58 +0000 (17:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Sep 2005 17:32:58 +0000 (17:32 +0000)
commita453951dd9902d675b9b61e60afe9e02a00a22c8
treebefc70d4e5014875ce0412af405b184fe3d8bc21
parent4f915cd3770738feb31a36ee57706052480d627a
Take exclusive buffer lock in scan_heap() to eliminate some corner cases
in which invalid page data could be transiently written to disk by
concurrent bgwriter activity.  There doesn't seem any risk of loss of
actual user data, but an empty page could possibly be left corrupt if a
crash occurs before the correct data gets written out.  Pointed out by
Alvaro Herrera.
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c