Use ResourceOwners in the snapshot manager, instead of attempting to track them
authorAlvaro Herrera <[email protected]>
Tue, 25 Nov 2008 20:28:29 +0000 (20:28 +0000)
committerAlvaro Herrera <[email protected]>
Tue, 25 Nov 2008 20:28:29 +0000 (20:28 +0000)
commit52d70aa5d0cdcdf9ab925fb46024b4b91760ac43
treeac068a18d0317f9fb2bc8cbace4b5223b0ce02df
parent4c3928754210de3b854f8f09ac0efb5fe7333407
Use ResourceOwners in the snapshot manager, instead of attempting to track them
by hand.  As an added bonus, the new code is smaller and more understandable,
and the ugly loops are gone.

This had been discussed all along but never implemented.  It became clear that
it really needed to be fixed after a bug report by Pavan Deolasee.
src/backend/utils/resowner/README
src/backend/utils/resowner/resowner.c
src/backend/utils/time/snapmgr.c
src/include/utils/resowner.h