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

Commit3e2fe32

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 parentf7dbdab commit3e2fe32

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
@@ -326,7 +326,8 @@ add_paths_to_joinrel(PlannerInfo *root,
326326
/*
327327
* createplan.c does not currently support handling of pseudoconstant
328328
* clauses assigned to joins pushed down by extensions; check if the
329-
* restrictlist has such clauses, and if so, disallow pushing down joins.
329+
* restrictlist has such clauses, and if not, allow them to consider
330+
* pushing down joins.
330331
*/
331332
if ((joinrel->fdwroutine&&
332333
joinrel->fdwroutine->GetForeignJoinPaths)||
@@ -347,7 +348,10 @@ add_paths_to_joinrel(PlannerInfo *root,
347348
jointype,&extra);
348349

349350
/*
350-
* 6. Finally, give extensions a chance to manipulate the path list.
351+
* 6. Finally, give extensions a chance to manipulate the path list. They
352+
* could add new paths (such as CustomPaths) by calling add_path(), or
353+
* add_partial_path() if parallel aware. They could also delete or modify
354+
* paths added by the core code.
351355
*/
352356
if (set_join_pathlist_hook&&
353357
consider_join_pushdown)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp