Skip to content

Commit c621467

Browse files
author
Etsuro Fujita
committed
Update comment about set_join_pathlist_hook().
The comment introduced by commit e7cb7ee was a bit too terse, which could lead to extensions doing different things within the hook function than we intend to allow. Extend the comment to explain what they can do within the hook function. Back-patch to all supported branches. In passing, I rephrased a nearby comment that I recently added to the back branches. Reviewed by David Rowley and Andrei Lepikhov. Discussion: https://postgr.es/m/CAPmGK15SBPA1nr3Aqsdm%2BYyS-ay0Ayo2BRYQ8_A2To9eLqwopQ%40mail.gmail.com
1 parent 5cfba1a commit c621467

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/optimizer/path/joinpath.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ add_paths_to_joinrel(PlannerInfo *root,
333333
jointype, &extra);
334334

335335
/*
336-
* 6. Finally, give extensions a chance to manipulate the path list.
336+
* 6. Finally, give extensions a chance to manipulate the path list. They
337+
* could add new paths (such as CustomPaths) by calling add_path(), or
338+
* add_partial_path() if parallel aware. They could also delete or modify
339+
* paths added by the core code.
337340
*/
338341
if (set_join_pathlist_hook)
339342
set_join_pathlist_hook(root, joinrel, outerrel, innerrel,

0 commit comments

Comments
 (0)