]> granicus.if.org Git - postgresql/commit
Marginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 17 Sep 2006 22:16:22 +0000 (22:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 17 Sep 2006 22:16:22 +0000 (22:16 +0000)
commit2e5e856f6b4f4e7445ec4b14fc4504469f6f4f54
treea5787778a831c23ad54beb0348e635b393eea944
parentf204274191f742deb489f53ebead03a0ed0a48eb
Marginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared
after an error during VACUUM.  We have a PG_TRY block anyway around the only
call sites, so just reset it in the CATCH clause instead of having
AtEOXact_Buffers blindly do it during xact end.  I think the old code was
actively wrong for the case of a failure during ANALYZE inside a
subtransaction --- the flag wouldn't get cleared until main transaction end.
Probably not worth back-patching though.
src/backend/commands/vacuum.c
src/backend/storage/buffer/bufmgr.c