On Thu, Sep 3, 2026 at 11:57 PM Tom Lane <[email protected]> wrote: > Richard Guo <[email protected]> writes: > > Attached is a patch that teaches join_is_legal() to reject a join > > whose minimum parameterization includes an outer-join relid, if that > > outer join cannot be formed outside the join.
> This looks like a good fix to me. Interesting that we've failed > to notice this bug up to now. Thanks for looking! I think part of the reason we've failed to notice this bug is that such joins used to be rejected by have_dangerous_phv(), which was only removed in v18 I've pushed this patch and back-patched it to v18. - Richard
