diff options
Diffstat (limited to 'src/include/commands/explain.h')
-rw-r--r-- | src/include/commands/explain.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index 2e48f0f233..3d0a5abbc2 100644 --- a/src/include/commands/explain.h +++ b/src/include/commands/explain.h @@ -35,13 +35,15 @@ typedef struct ExplainState bool timing; /* print detailed node timing */ bool summary; /* print total planning and execution timing */ ExplainFormat format; /* output format */ - /* other states */ + /* state for output formatting --- not reset for each new plan tree */ + int indent; /* current indentation level */ + List *grouping_stack; /* format-specific grouping state */ + /* state related to the current plan tree (filled by ExplainPrintPlan) */ PlannedStmt *pstmt; /* top of plan */ List *rtable; /* range table */ List *rtable_names; /* alias names for RTEs */ - int indent; /* current indentation level */ - List *grouping_stack; /* format-specific grouping state */ List *deparse_cxt; /* context list for deparsing expressions */ + Bitmapset *printed_subplans; /* ids of SubPlans we've printed */ } ExplainState; /* Hook for plugins to get control in ExplainOneQuery() */ |