OSDN Git Service

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)
commit19c90bcc2560225ab4ea70007af970e6042fbe00
treee3c35912a1a1d305a7a7cbabd8f4485a873dfaba
parentbea8af915253a56cb7536e30ce72e88968f3b6cb
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