]> granicus.if.org Git - postgresql/commit
Fix oversight in coding of _bt_start_vacuum: we can't assume that the LWLock
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Mar 2007 00:13:05 +0000 (00:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Mar 2007 00:13:05 +0000 (00:13 +0000)
commit0e95abd64cd3d68da4e9134554ede4badcd106d4
treefae6a30fc7f1209556d873200b2665e860ffbfdd
parent2dd336bba56d9caa7bcbca550fba34423f8d71e6
Fix oversight in coding of _bt_start_vacuum: we can't assume that the LWLock
will be released by transaction abort before _bt_end_vacuum gets called.
If either of these "can't happen" errors actually happened, we'd freeze up
trying to acquire an already-held lock.  Latest word is that this does
not explain Martin Pitt's trouble report, but it still looks like a bug.
src/backend/access/nbtree/nbtutils.c