Re: A problem in deconstruct_distribute_oj_quals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: A problem in deconstruct_distribute_oj_quals
Date: 2023-02-07 16:58:24
Message-ID: 3200967.1675789104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> On Tue, Feb 7, 2023 at 2:12 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I don't see any change in this query plan when I remove that code, so
>> I'm not sure you're explaining your point very well.

> To observe an obvious plan change, we can add unique constraint for 'a'
> and look how outer-join removal works.

Ah. Yeah, that's pretty convincing, especially since v15 manages to
find that optimization. Pushed with a test case.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Paul Ramsey 2023-02-07 17:08:15 Re: daitch_mokotoff module
Previous Message Robert Haas 2023-02-07 16:57:31 Re: run pgindent on a regular basis / scripted manner