diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-18 21:41:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-18 21:41:14 +0000 |
commit | 6869810637f0f6204e2037c227dafad33a8ce3c1 (patch) | |
tree | 38afa150b12448ae8b540995788ceb3802886132 /src/backend/access/gist/gistscan.c | |
parent | ab04f4de7a187c4715b871675b3afa17fc59c9e1 (diff) | |
download | postgresql-6869810637f0f6204e2037c227dafad33a8ce3c1.tar.gz postgresql-6869810637f0f6204e2037c227dafad33a8ce3c1.zip |
Fix an old thinko in SS_make_initplan_from_plan, which is used when optimizing
a MIN or MAX aggregate call into an indexscan: the initplan is being made at
the current query nesting level and so we shouldn't increment query_level.
Though usually harmless, this mistake could lead to bogus "plan should not
reference subplan's variable" failures on complex queries. Per bug report
from David Sanchez i Gregori.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions