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

Commit262e56b

Browse files
committed
Teach planstate_tree_walker about custom scans.
This logic was missing from ExplainPreScanNode, from which I derivedplanstate_tree_walker. But it shouldn't be missing, especially notfrom a generic walker function, so add it.KaiGai Kohei
1 parentb1d5cc3 commit262e56b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/nodes/nodeFuncs.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,7 @@ bool
34283428
planstate_tree_walker(PlanState*planstate,bool (*walker) (),void*context)
34293429
{
34303430
Plan*plan=planstate->plan;
3431+
ListCell*lc;
34313432

34323433
/* initPlan-s */
34333434
if (planstate_walk_subplans(planstate->initPlan,walker,context))
@@ -3484,6 +3485,13 @@ planstate_tree_walker(PlanState *planstate, bool (*walker) (), void *context)
34843485
if (walker(((SubqueryScanState*)planstate)->subplan,context))
34853486
return true;
34863487
break;
3488+
caseT_CustomScan:
3489+
foreach (lc, ((CustomScanState*)planstate)->custom_ps)
3490+
{
3491+
if (walker((PlanState*)lfirst(lc),context))
3492+
return true;
3493+
}
3494+
break;
34873495
default:
34883496
break;
34893497
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp