Re: v16 regression - wrong query results with LEFT JOINs + join removal

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: v16 regression - wrong query results with LEFT JOINs + join removal
Date: 2023-05-11 14:14:54
Message-ID: CA+Tgmob4zZU9Ab_8gCm87E7drhTXAOR3hH7+7BMuUw9LBVO8cQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 11, 2023 at 9:57 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > While merging commits from c9f7f926484d69e2806e35343af7e472fadfede7
> > through 3db72ebcbe20debc6552500ee9ccb4b2007f12f8 into a fork, my
> > colleague Rushabh Lathia and I noticed that the merge caused certain
> > queries to return wrong answers.
>
> I believe this is a variant of the existing open issue about
> the outer-join-Vars stuff:
>
> https://www.postgresql.org/message-id/flat/0b819232-4b50-f245-1c7d-c8c61bf41827%40postgrespro.ru

Ouch, so we've had a known queries-returning-wrong-answers bug for
more than two months. That's not great. I'll try to find time today to
check whether the patches on that thread resolve this issue.

> I've been incredibly distracted by $real-life over the past few
> weeks, but am hoping to get the outer-join-Vars issues resolved
> in the next day or two.

Thanks. Hope the real life distractions are nothing too awful, but
best wishes either way.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2023-05-11 14:30:05 Re: Should CSV parsing be stricter about mid-field quotes?
Previous Message Robert Haas 2023-05-11 14:07:23 Re: createuser --memeber and PG 16