PREPARE and EXPLAIN need to copy the source query just like we recently

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

Commit: c604ed56e3f9d4c236e06b717a18d1a5baa27c88
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-12-12T20:17:06Z
Releases: 8.0.0
PREPARE and EXPLAIN need to copy the source query just like we recently
had to do in DECLARE CURSOR.  AFAICS these are all the places affected.
PREPARE case per example from Michael Fuhr, EXPLAIN case located by
grepping for planner calls ...

Files

PathChange+/−
src/backend/commands/explain.c modified +11 −1
src/backend/commands/prepare.c modified +13 −2