Possible typo/unclear comment in joinpath.c
James Coleman <jtc331@gmail.com>
From: James Coleman <jtc331@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-04-14T15:36:38Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-extra_lateral_rels-typo.patch (application/octet-stream) patch v1-0001
In joinpath.c three times we reference "extra_lateral_rels" (with underscores like it's a field), but as far as I can tell that's not a field anywhere in the source code, and looking at the code that follows it seems like it should be referencing "lateral_relids" (and the "extra" is really "extra [in relation to relids]"). Assuming that interpretation is correct, I'd attached a patch to change all three occurrences to "extra lateral_relids" to reduce confusion. Thanks, James
Commits
-
Fix obsolete comments referencing JoinPathExtraData.extra_lateral_rels.
- e1623b7d8681 14.0 landed
-
Simplify LATERAL-related calculations within add_paths_to_joinrel().
- edca44b1525b 9.6.0 cited