Re: Wrong results with references to JOIN USING aliases

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Wrong results with references to JOIN USING aliases
Date: 2026-12-03 02:27:17
Message-ID: CAMbWs4_oCfYDY2B4qzSzJQ8KBZsWVMF5SEPf-mXsoKYYkVV9bQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 7, 2026 at 11:51 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I've not thought hard about this fix, but assuming it's OK, it seems
> to me that that objection's not a dealbreaker. It would only matter
> to people who actually got bit by this bug, which must be a pretty
> small number or we'd have heard about it before now. And they'd
> have had to hit it with a wholerow ref that's inside the view,
> not in a dynamic query, which makes it even less likely that there
> are many people who'd need to rebuild their views.

Makes sense. I've pushed this fix and back-patched it to v16.

- Richard

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Baji Shaik 2026-12-03 01:43:58 pg_dump writes a subscription's default slot name, which can't be restored