Re: obsolete reference to a SubPlan field

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amit Langote <amitlangote09(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: obsolete reference to a SubPlan field
Date: 2022-03-14 17:31:15
Message-ID: CA+TgmoYpVJe6Uv8Bcksje9OSZOwjkBTpCPvX1diyq-6Xv9vp+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 2, 2022 at 3:08 AM Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
> I noticed $subject while looking at something involving SubLinks and
> SubPlans. It seems eab6b8b27eb removed the "plan" field from the
> SubPlan node struct definition, but the following line from
> expression_tree_mutator():
>
> /* but not the sub-Plan itself, which is referenced as-is */
>
> and the following from expression_tree_walker():
>
> /* recurse into the testexpr, but not into the Plan */
>
> both of which I think refer to that no-longer-existent field, appear
> to have survived multiple commits that moved the SubPlan expression
> processing code around.
>
> Attached patch removes those.

Looks right to me. Tom, any comments?

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2022-03-14 17:34:17 Re: Estimating HugePages Requirements?
Previous Message Robert Haas 2022-03-14 17:21:55 Re: refactoring basebackup.c (zstd workers)