mirror of
https://github.com/postgres/postgres.git
synced 2026-06-04 06:45:49 -04:00
d514ea3fda
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.