Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque
Date: 2024-11-29 01:44:30
Message-ID: 397371.1732844670@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> On Fri, Nov 29, 2024 at 7:33 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> It seems to be sufficient to just not mark lateral
>> references at all in this case. (I have a nagging feeling that more
>> complexity may be needed in cases where there are several levels of
>> outer join, but some attempts to break it with that didn't succeed.)

> You're right about your feeling. Here is a query that breaks it.

Ah, thanks for the test case. I'll look into it tomorrow.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-11-29 02:56:51 pgsql: Fix typo in header comment for set_operation_ordered_results_use
Previous Message Richard Guo 2024-11-29 01:36:19 Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque