Re: remove_useless_joins vs. bug #19560

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: remove_useless_joins vs. bug #19560
Date: 2026-07-26 02:15:28
Message-ID: 2933135.1785032128@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here's a patchset addressing that. 0001-0003 are the same as before,
and then 0004 fixes this bug and adds tests.

Your Claude session mentioned a different failure scenario, but
gave no examples so I'm not quite sure if this covers it or not.

regards, tom lane

Attachment Content-Type Size
v3-0001-Postpone-initialization-of-all_result_relids-leaf.patch text/x-diff 4.7 KB
v3-0002-Perform-join-removal-by-editing-the-query-s-joint.patch text/x-diff 58.2 KB
v3-0003-Remove-dead-code-that-s-no-longer-needed-for-join.patch text/x-diff 64.1 KB
v3-0004-Ensure-we-hoist-modified-quals-to-the-right-join-.patch text/x-diff 9.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Brazeal 2026-07-26 03:13:51 Partition pruning can incorrectly exclude a RANGE default partition
Previous Message Michael Paquier 2026-07-26 00:19:03 Re: [PATCH v1] Fix propagation of indimmediate flag in index_create_copy