]> granicus.if.org Git - postgresql/commit
Use ResourceOwners in the snapshot manager, instead of attempting to track them
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 25 Nov 2008 20:28:29 +0000 (20:28 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 25 Nov 2008 20:28:29 +0000 (20:28 +0000)
commit6bbef4e5383c99d93aa974e2c79d328cfbd1c4a9
tree6f2dcb1f3a1e92b1c503a22c17d1267a6dea42c1
parent1304f297a44516857cf404742487da0ed6344fdb
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