]> granicus.if.org Git - postgresql/commit
Fix bug #5269: ResetPlanCache mustn't invalidate cached utility statements,
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jan 2010 16:57:03 +0000 (16:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jan 2010 16:57:03 +0000 (16:57 +0000)
commite245c91211adb26be7cfdaeed2977411a003622f
tree40d25ebf7be8877c98b55bf0217142ab94e86179
parentcc398df078a8bf3bbbd3ebfb842a86864ecc2c4b
Fix bug #5269: ResetPlanCache mustn't invalidate cached utility statements,
especially not ROLLBACK.  ROLLBACK might need to be executed in an already
aborted transaction, when there is no safe way to revalidate the plan.  But
in general there's no point in marking utility statements invalid, since
they have no plans in the normal sense of the word; so we might as well
work a bit harder here to avoid future revalidation cycles.

Back-patch to 8.4, where the bug was introduced.
src/backend/utils/cache/plancache.c