Re: [POC] Allow flattening of subquery with a link to upper query - Mailing list pgsql-hackers

From Andrey Lepikhov
Subject Re: [POC] Allow flattening of subquery with a link to upper query
Date
Msg-id 35c8a3e8-d080-dfa8-2be3-cf5fe702010a@postgrespro.ru
Whole thread Raw
In response to Re: [POC] Allow flattening of subquery with a link to upper query  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: [POC] Allow flattening of subquery with a link to upper query  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
On 5/10/2022 02:45, Zhihong Yu wrote:
> Hi,
> For contain_placeholders():
> 
> +   if (IsA(node, Query))
> +       return query_tree_walker((Query *) node, contain_placeholders, 
> context, 0);
> +   else if (IsA(node, PlaceHolderVar))
Fixed
> 
> The `else` is not needed.
> 
> For correlated_t struct, it would be better if the fields have comments.
Ok, I've added some comments.
> 
> +                    * (for grouping, as an example). So, revert its 
> status to
> +                    * a full valued entry.
> 
> full valued -> fully valued
Fixed

-- 
regards,
Andrey Lepikhov
Postgres Professional

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)
Next
From: vignesh C
Date:
Subject: Re: Miscellaneous tab completion issue fixes