Add a bit more locking to vac_update_relstats and vac_update_dbstats
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Oct 2003 23:19:44 +0000 (23:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Oct 2003 23:19:44 +0000 (23:19 +0000)
commitc370c7715abf79add510a3245f995dca447ce09a
treefebe1c2ab8c5cc09b1c4f91405767d5713acf68a
parentc3f9067413db55b22d6e8925389929de556f8f99
Add a bit more locking to vac_update_relstats and vac_update_dbstats
to make them comparable to what UpdateStats does in the same situation.
I'm not certain two instances of vac_update_relstats could run in
parallel for the same relation, but parallel invocations of vac_update_dbstats
do seem possible.
src/backend/commands/vacuum.c