diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-26 12:44:17 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-09-26 12:44:17 -0400 |
commit | 21fb95da46bce8de3e149707c680d489b8a5ffb0 (patch) | |
tree | d8592e7c92adbe249d0e4478f31128026fbf7363 /src/backend/executor/execProcnode.c | |
parent | 2a571bc233821023afdf8729a3ae5071b2343f65 (diff) | |
download | postgresql-21fb95da46bce8de3e149707c680d489b8a5ffb0.tar.gz postgresql-21fb95da46bce8de3e149707c680d489b8a5ffb0.zip |
Use a fresh copy of query_list when making a second plan in GetCachedPlan.
The code path that tried a generic plan, didn't like it, and then made a
custom plan was mistakenly passing the same copy of the query_list to the
planner both times. This doesn't work too well for nontrivial queries,
since the planner tends to scribble on its input. Diagnosis and fix by
Yamamoto Takashi.
Diffstat (limited to 'src/backend/executor/execProcnode.c')
0 files changed, 0 insertions, 0 deletions