| From: | Richard Guo <guofenglinux(at)gmail(dot)com> |
|---|---|
| To: | Ayoub Kazar <ayoub(dot)kazar(at)data-bene(dot)io> |
| Cc: | wenhui qiu <qiuwenhuifx(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Simplify the uniqueness proof for self-join elimination |
| Date: | 2026-11-30 02:22:55 |
| Message-ID: | CAMbWs48wk+f8EKmTV+5kUt9TUprO6uTBYXiTu+vpE8N3ffPggQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 27, 2026 at 6:57 PM Ayoub Kazar <ayoub(dot)kazar(at)data-bene(dot)io> 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 | Content-Type | Size |
|---|---|---|
| v3-0001-Put-the-scanned-relation-s-CTID-first-in-paramete.patch | application/octet-stream | 4.7 KB |
| v3-0002-Simplify-the-uniqueness-proof-for-self-join-elimi.patch | application/octet-stream | 26.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2026-11-30 03:31:34 | Re: Include schema-qualified names in publication error messages (generalised to all of LR). |
| Previous Message | Hayato Kuroda (Fujitsu) | 2026-11-30 01:54:49 | RE: logical decoding: removing change_useless_for_repack() |