]> granicus.if.org Git - postgresql/commit
Add missing handling of PlannedStmt.transientPlan in copyfuncs/outfuncs.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Aug 2010 15:22:15 +0000 (15:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Aug 2010 15:22:15 +0000 (15:22 +0000)
commit12bc654604e5e8cd5d71b154d19e8a7708003b8b
treefe1e11370b7efbd4b960242ef25f890f8cc10653
parent4d20da794e6f8a28a52f888a01e622594de6c562
Add missing handling of PlannedStmt.transientPlan in copyfuncs/outfuncs.

_outPlannedStmt is only debug support, so the omission there was not very
serious, but the omission in _copyPlannedStmt is a real bug.  The consequence
would be that a copied plan tree would never be marked as a transient plan,
so that we would forget we ought to replan it after some not-yet-ready index
becomes ready for use.  This might explain some past complaints about indexes
created with CREATE INDEX CONCURRENTLY not being used right away.  Problem
spotted by Yeb Havinga.

Back-patch to 8.3, where the field was added.
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c