Re: BUG #19460: FULL JOIN rewriting issue on empty queries

From: François Jehl <francois(dot)jehl(at)pigment(dot)com>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)lists(dot)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: BUG #19460: FULL JOIN rewriting issue on empty queries
Date: 2026-04-21 07:40:47
Message-ID: CABZtAYZwSQfMgvQXKPiQ5v23UWms_y4hwxXtbxbUWYjwsou5Lw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks Tom and Richard for the quick diagnosis and fix, I should be the one
saying thanks here!

François

On Tue, Apr 21, 2026 at 1:04 AM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:

> On Tue, Apr 21, 2026 at 7:40 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Ah: equivclass.c doesn't mind letting em->em_relids be an alias
> > for the left_relids or right_relids of some source RestrictInfo.
> > That's not problematic as long as those are all constants after
> > construction of the EquivalenceClass, but when remove_rel_from_eclass
> > is trying to change things, it's a big problem.
>
> ha, I just came to the same conclusion.
>
> > This seems to do the trick to fix it, although I'm going to wait
> > for a valgrind regression run to finish before deciding this
> > is enough:
>
> This seems safe enough to me. LGTM.
>
> - Richard
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2026-04-21 12:20:38 RE: BUG #19464: Server crash (SIGABRT) with UPDATE containing multiple multi-column assignments
Previous Message Richard Guo 2026-04-21 05:45:01 Re: BUG #19418: SQL/JSON JSON_VALUE() does not conform to ISO/IEC 9075-2:2023(E) 6.34 <JSON value constructor>