]> granicus.if.org Git - postgresql/commit
Force READY portals into FAILED state when a transaction or subtransaction
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Feb 2010 03:06:53 +0000 (03:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Feb 2010 03:06:53 +0000 (03:06 +0000)
commit85a646aee39b97b68bd70956db95afd11cde93a8
tree2e54bc5066fa727b1c41ff2953e27d4652b25b45
parentef7604fafa6538e6e6f3884cf7c8f59da47e3535
Force READY portals into FAILED state when a transaction or subtransaction
is aborted, if they were created within the failed xact.  This prevents
ExecutorEnd from being run on them, which is a good idea because they may
contain references to tables or other objects that no longer exist.
In particular this is hazardous when auto_explain is active, but it's
really rather surprising that nobody has seen an issue with this before.
I'm back-patching this to 8.4, since that's the first version that contains
auto_explain or an ExecutorEnd hook, but I wonder whether we shouldn't
back-patch further.
src/backend/utils/mmgr/portalmem.c