Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque
Date
Msg-id 397371.1732844670@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-committers
Richard Guo <guofenglinux@gmail.com> writes:
> On Fri, Nov 29, 2024 at 7:33 AM Tom Lane <tgl@sss.pgh.pa.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



pgsql-committers by date:

Previous
From: Richard Guo
Date:
Subject: Re: pgsql: Avoid mislabeling of lateral references when pulling up a subque
Next
From: David Rowley
Date:
Subject: pgsql: Fix typo in header comment for set_operation_ordered_results_use