Comment about set_join_pathlist_hook()
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-09-20T10:05:31Z
Lists: pgsql-hackers
Attachments
- update-set_join_pathlist_hook-comment.patch (application/octet-stream) patch
Hi,
What I am concerned about from the report [1] is that this comment is
a bit too terse; it might cause a misunderstanding that extensions can
do different things than we intend to allow:
/*
* 6. Finally, give extensions a chance to manipulate the path list.
*/
if (set_join_pathlist_hook)
set_join_pathlist_hook(root, joinrel, outerrel, innerrel,
jointype, &extra);
So I would like to propose to extend the comment to explain what they
can do, as in the comment about set_rel_pathlist_hook() in allpaths.c.
Attached is a patch for that.
Best regards,
Etsuro Fujita
[1] https://www.postgresql.org/message-id/CACawEhV%3D%2BQ0HXrcDergbTR9EkVFukgRPMTZbRFL-YK5CRmvYag%40mail.gmail.com
Commits
-
Update comment about set_join_pathlist_hook().
- c994d06f105a 11.22 landed
- c50ad79f609c 12.17 landed
- a3a66d3ff18c 13.13 landed
- c7c4ce2be363 14.10 landed
- da421219e429 15.5 landed
- 3e2fe3255262 16.1 landed
- c621467d2bc6 17.0 landed