Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f0f18c7087e04a60e2612151401b07df87e51d96
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-11-30T18:38:34Z
Releases: 8.3.0
Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached
plan before the effects of DDL executed in an immediately prior SPI operation
had been absorbed.  Per report from Chris Wood.

This patch has an unpleasant side effect of causing the number of
CommandCounterIncrement()s done by a typical plpgsql function to
approximately double.  Amelioration of the consequences of that
will be undertaken in a separate patch.

Files