PREPARE and EXPLAIN need to copy the source query just like we recently
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +11 −1 |
| src/backend/commands/prepare.c | modified | +13 −2 |