Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc50ad79

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/optimizer/path/joinpath.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ add_paths_to_joinrel(PlannerInfo *root,
312312
/*
313313
* createplan.c does not currently support handling of pseudoconstant
314314
* clauses assigned to joins pushed down by extensions; check if the
315-
* restrictlist has such clauses, and if so, disallow pushing down joins.
315+
* restrictlist has such clauses, and if not, allow them to consider
316+
* pushing down joins.
316317
*/
317318
if ((joinrel->fdwroutine&&
318319
joinrel->fdwroutine->GetForeignJoinPaths)||
@@ -333,7 +334,10 @@ add_paths_to_joinrel(PlannerInfo *root,
333334
jointype,&extra);
334335

335336
/*
336-
* 6. Finally, give extensions a chance to manipulate the path list.
337+
* 6. Finally, give extensions a chance to manipulate the path list. They
338+
* could add new paths (such as CustomPaths) by calling add_path(), or
339+
* add_partial_path() if parallel aware. They could also delete or modify
340+
* paths added by the core code.
337341
*/
338342
if (set_join_pathlist_hook&&
339343
consider_join_pushdown)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp