• Tom Lane's avatar
    Add missing handling of PlannedStmt.transientPlan in copyfuncs/outfuncs. · 99848ed7
    Tom Lane authored
    _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.
    99848ed7
copyfuncs.c 83.2 KB