]> 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:56:56 +0000 (16:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jan 2010 16:56:56 +0000 (16:56 +0000)
commitdbba3a1465472bda66265e6a38fd24cbe619f233
tree431e042905f4f619d392d56a60d15f78eee3ecd8
parentb3627d1de3ec03adea8551465351bc536f12f526
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