aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-08-17 01:20:00 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-08-17 01:20:00 +0000
commit19e34b62395b36513a8e6c35ddfbeef12dd1e89f (patch)
treecf74ae45a1d9ea3c6f2ffc471d5dea75fb510984 /src/backend/tcop/postgres.c
parent909346eff0ca2c7a73e889122d6f54669494141b (diff)
downloadpostgresql-19e34b62395b36513a8e6c35ddfbeef12dd1e89f.tar.gz
postgresql-19e34b62395b36513a8e6c35ddfbeef12dd1e89f.zip
Improve sublink pullup code to handle ANY/EXISTS sublinks that are at top
level of a JOIN/ON clause, not only at top level of WHERE. (However, we can't do this in an outer join's ON clause, unless the ANY/EXISTS refers only to the nullable side of the outer join, so that it can effectively be pushed down into the nullable side.) Per request from Kevin Grittner. In passing, fix a bug in the initial implementation of EXISTS pullup: it would Assert if the EXIST's WHERE clause used a join alias variable. Since we haven't yet flattened join aliases when this transformation happens, it's necessary to include join relids in the computed set of RHS relids.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions