Re: Possible typo/unclear comment in joinpath.c

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Justin Pryzby <pryzby@telsasoft.com>, James Coleman <jtc331@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2021-04-14T19:46:11Z
Lists: pgsql-hackers
On Wed, Apr 14, 2021 at 2:32 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> No, I take that back.  There were no references to extra_lateral_rels
> after that commit; these comments were added by 45be99f8c, about
> six weeks later.  The latter was a pretty large patch and had
> presumably been under development for quite some time, so the comments
> were probably accurate when written but didn't get updated.

Woops.

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



Commits

  1. Fix obsolete comments referencing JoinPathExtraData.extra_lateral_rels.

  2. Simplify LATERAL-related calculations within add_paths_to_joinrel().