diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-06-29 12:12:52 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-06-29 12:12:52 -0400 |
commit | a798660ebe3ff1feb310db13b957c5cda4c8c50d (patch) | |
tree | 3061c9172724f41cac19a273341f583d932f5656 /contrib/postgres_fdw/postgres_fdw.h | |
parent | 43af714defa00145981eb542cb71647836b3efa4 (diff) | |
download | postgresql-a798660ebe3ff1feb310db13b957c5cda4c8c50d.tar.gz postgresql-a798660ebe3ff1feb310db13b957c5cda4c8c50d.zip |
Defend against bogus parameterization of join input paths.
An outer join cannot be formed using an input path that is parameterized
by a value that is supposed to be nulled by the outer join. This is
obviously nonsensical, and it could lead to a bad plan being selected;
although currently it seems that we'll hit various sanity-check
assertions first.
I think that such cases were formerly prevented by the delay_upper_joins
mechanism, but now that that's gone we need an explicit check.
(Perhaps we should avoid generating baserel paths that could
lead to this situation in the first place; but it seems like
having a defense at the join level would be a good idea anyway.)
Richard Guo and Tom Lane, per report from Jaime Casanova
Discussion: https://postgr.es/m/CAJKUy5g2uZRrUDZJ8p-=giwcSHVUn0c9nmdxPSY0jF0Ov8VoEA@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions