aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_clause.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-07-18 21:40:57 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-07-18 21:40:57 +0000
commitd514ea3fda5b5d89cc5a9386f10ac315c4e18486 (patch)
tree87569e5141bd855d8bc4773178e17a7e25e62bb0 /src/backend/parser/parse_clause.c
parentcdedfe6af1c426b28b2e0ff522d5d88f195a5d47 (diff)
downloadpostgresql-d514ea3fda5b5d89cc5a9386f10ac315c4e18486.tar.gz
postgresql-d514ea3fda5b5d89cc5a9386f10ac315c4e18486.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/parser/parse_clause.c')
0 files changed, 0 insertions, 0 deletions