Re: Clean up remove_rel_from_query() after self-join elimination commit - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Clean up remove_rel_from_query() after self-join elimination commit
Date
Msg-id CAMbWs497f7moAjeHG2z+zFap1xkTf1wobkMs4m5SVmKQneenmQ@mail.gmail.com
Whole thread
In response to Re: Clean up remove_rel_from_query() after self-join elimination commit  (wenhui qiu <qiuwenhuifx@gmail.com>)
List pgsql-hackers
On Mon, Apr 20, 2026 at 9:49 AM wenhui qiu <qiuwenhuifx@gmail.com> wrote:
> > Assert(!is_outer_join || joinrelids != NULL);
>
> > Worth asserting.  If a caller sets sjinfo but passes NULL for
> > joinrelids, this would silently over-delete PHVs.
> > Assert(!is_self_join || joinrelids == NULL);
>
> LGTM with the added assertion.

Thanks.  Committed.

- Richard



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Truncate logs by max_log_size
Next
From: Amit Kapila
Date:
Subject: Re: Fix stats reporting delays in logical parallel apply worker