On Fri, Nov 27, 2026 at 6:57 PM Ayoub Kazar <[email protected]> wrote:
> Agree, option 1 seems fine.

Thanks for the report and the analysis.

I agree this is a pre-existing issue that SJE happened to mask.  On
master, SJE builds the derived clause from t1's side before path
generation.  With v2's early exit, the clause is instead built from
t2's side when the advice disables TID scans on t1, so the TID Cond
flips.

The option 1 looks good to me.  0001 implements it.  This changes the
TID Cond of the two parameterized TID scans in tidscan.out.  0002 is
the SJE patch, unchanged from v2.

- Richard

Attachment: v3-0001-Put-the-scanned-relation-s-CTID-first-in-paramete.patch
Description: Binary data

Attachment: v3-0002-Simplify-the-uniqueness-proof-for-self-join-elimi.patch
Description: Binary data

Reply via email to