aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-07-18 21:41:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-07-18 21:41:22 +0000
commit429870e33e97d2e7748e5dd146adcbd5058e218e (patch)
treee96e626a0b8a68656fcfb785ed9e768e06fad491 /src/backend/access/gist/gist.c
parentb1def736b00595c8983cee5d513762f084ce444b (diff)
downloadpostgresql-429870e33e97d2e7748e5dd146adcbd5058e218e.tar.gz
postgresql-429870e33e97d2e7748e5dd146adcbd5058e218e.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/gist.c')
0 files changed, 0 insertions, 0 deletions