Re: Fix incorrect comment reference

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: James Coleman <jtc331(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix incorrect comment reference
Date: 2023-01-23 18:26:31
Message-ID: CA+TgmoYw=7p5D1uwtrOmzVZ=JjG4gyiCLLVj0e2xQ+m026VaTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 23, 2023 at 8:31 AM James Coleman <jtc331(at)gmail(dot)com> wrote:
> See the attached for a simple comment fix -- the referenced
> generate_useful_gather_paths call isn't in grouping_planner it's in
> apply_scanjoin_target_to_paths.

The intended reading of the comment is not clear. Is it telling you to
look at grouping_planner because that's where we
generate_useful_gather_paths, or is it telling you to look there to
see how we get the final target list together? If it's the former,
then your fix is correct. If the latter, it's fine as it is.

The real answer is probably that some years ago both things happened
in that function. We've moved on from there, but I'm still not sure
what the most useful phrasing of the comment is.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2023-01-23 18:26:39 Re: Non-superuser subscription owners
Previous Message Robert Haas 2023-01-23 18:21:31 Re: Non-superuser subscription owners