Re: BUG #17976: Inconsistent results of SELECT using CASE WHEN clause

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, zuming(dot)jiang(at)inf(dot)ethz(dot)ch, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17976: Inconsistent results of SELECT using CASE WHEN clause
Date: 2023-06-19 12:43:48
Message-ID: CAA4eK1KMueY=s=MrN1T8DSj+ZDkanwJy0XsO=4w9q15tUjLOMg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Jun 16, 2023 at 1:06 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> > I went ahead and drafted a patch as attached. But I'm not sure if it
> > suffices to only update ec_relids, em_relids and ec_sources as the patch
> > does. Also I'm wondering if any of them would become empty after the
> > update.
>
> Thanks. I pushed this after making some changes:
>

Does this commit close the open item: "join removal can no longer skip
updating EquivalenceClasses"? If so, can we update it?

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-06-19 13:29:55 Re: BUG #17976: Inconsistent results of SELECT using CASE WHEN clause
Previous Message Dmitry Dolgov 2023-06-19 12:17:57 Re: BUG #17949: Adding an index introduces serialisation anomalies.