]> granicus.if.org Git - postgresql/commit
Fix a couple of snapshot management bugs in the new ResourceOwner world:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 4 Dec 2008 14:51:02 +0000 (14:51 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 4 Dec 2008 14:51:02 +0000 (14:51 +0000)
commit7b640b0345dc4fbd39ff568700985b432f6afa07
treebf19fbefd12623fd923cc9fcfc51e41767ad50b2
parent30c52532d2fe9dfc915ae1292f03adf7d033816b
Fix a couple of snapshot management bugs in the new ResourceOwner world:
non-writable large objects need to have their snapshots registered on the
transaction resowner, not the current portal's, because it must persist until
the large object is closed (which the portal does not).  Also, ensure that the
serializable snapshot is recorded by the transaction resource owner too, even
when a subtransaction has changed the current resource owner before
serializable is taken.

Per bug reports from Pavan Deolasee.
src/backend/access/transam/xact.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/time/snapmgr.c
src/include/utils/snapmgr.h
src/test/regress/input/largeobject.source
src/test/regress/output/largeobject.source
src/test/regress/output/largeobject_1.source