Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Nov 2007 18:38:34 +0000 (18:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Nov 2007 18:38:34 +0000 (18:38 +0000)
commitf0f18c7087e04a60e2612151401b07df87e51d96
tree37900cb71cee0dcbdb5f7b38157247cc81309c52
parent7c43106db263a7b54737bc576bb72caea8258a61
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.
src/backend/executor/spi.c
src/test/regress/expected/plancache.out
src/test/regress/sql/plancache.sql