aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-06 20:31:18 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-06 20:31:18 +0000
commit1f36feceb0842f0e69054a49ca04b432be626085 (patch)
tree961ce3ba8ebfb339c9b415245ff9928c11d1bcd3 /src/backend/executor/nodeFunctionscan.c
parent421c66b76c3d51e764bd3d8ea25acae89a5b222d (diff)
downloadpostgresql-1f36feceb0842f0e69054a49ca04b432be626085.tar.gz
postgresql-1f36feceb0842f0e69054a49ca04b432be626085.zip
Tweak distribute_qual_to_rels so that when we decide a pseudoconstant qual
can be pushed to the top of the join tree, we update both the relids and qualscope variables to keep them in sync. This prevents a possible later failure of an Assert clause, and affects nothing else since qualscope isn't used later except for that Assert. At the moment the Assert shouldn't be reachable when we've pushed the qual up; but this is cheap insurance, and it's more sensible anyway in terms of the overall logic of the routine. Per analysis of a bug report from Stefan Huehner. I'm not back-patching this since it's just future-proofing; but if anyone gets tempted to change check_outerjoin_delay again in the back branches, this might be needed.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions