Skip to content

Commit 6e7a516

Browse files
committed
show plans in explain analyze
1 parent 6b0dd08 commit 6e7a516

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pickyappend.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ transform_plans_into_states(PickyAppendState *scan_state,
5656
HASH_ENTER, &pps_found);
5757

5858
if (!pps_found)
59+
{
5960
pps->ps = ExecInitNode(child->content.plan, estate, 0);
61+
scan_state->css.custom_ps = lappend(scan_state->css.custom_ps, pps->ps);
62+
}
6063
else
6164
ExecReScan(pps->ps);
6265

@@ -512,6 +515,4 @@ pickyappend_rescan(CustomScanState *node)
512515
void
513516
pickyppend_explain(CustomScanState *node, List *ancestors, ExplainState *es)
514517
{
515-
PickyAppendState *scan_state = (PickyAppendState *) node;
516-
StringInfoData str;
517518
}

0 commit comments

Comments
 (0)