diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-02-13 11:45:32 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-02-13 11:45:32 -0500 |
commit | f50f029c497da35927491f16964f7aa993ecbae5 (patch) | |
tree | 7dbaed8805ac9de62c8b82e86c7108718df21a6a /src/backend/utils/adt/array_userfuncs.c | |
parent | b16259b3c1897cf90855a94e5cb126d6c75e3cf3 (diff) | |
download | postgresql-f50f029c497da35927491f16964f7aa993ecbae5.tar.gz postgresql-f50f029c497da35927491f16964f7aa993ecbae5.zip |
Fix thinkos in have_unsafe_outer_join_ref; reduce to Assert check.
Late in the development of commit 2489d76c4, I (tgl) incorrectly
concluded that the new function have_unsafe_outer_join_ref couldn't
ever reach its inner loop. That should be the case if the inner
rel's parameterization is based on just one Var, but it could be
based on Vars from several relations, and then not only is the
inner loop reachable but it's wrongly coded.
Despite those errors, it still appears that the whole thing is
redundant given previous join_is_legal checks, so let's arrange
to only run it in assert-enabled builds.
Diagnosis and patch by Richard Guo, per fuzz testing by Justin Pryzby.
Discussion: https://postgr.es/m/20230212235823.GW1653@telsasoft.com
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions