summaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r--src/backend/commands/explain.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index f0d9e94eed..7fb8a1458d 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -853,6 +853,9 @@ ExplainNode(PlanState *planstate, List *ancestors,
case T_SampleScan:
pname = sname = "Sample Scan";
break;
+ case T_Gather:
+ pname = sname = "Gather";
+ break;
case T_IndexScan:
pname = sname = "Index Scan";
break;
@@ -1276,6 +1279,22 @@ ExplainNode(PlanState *planstate, List *ancestors,
show_instrumentation_count("Rows Removed by Filter", 1,
planstate, es);
break;
+ case T_Gather:
+ {
+ Gather *gather = (Gather *) plan;
+
+ show_scan_qual(plan->qual, "Filter", planstate, ancestors, es);
+ if (plan->qual)
+ show_instrumentation_count("Rows Removed by Filter", 1,
+ planstate, es);
+ ExplainPropertyInteger("Number of Workers",
+ gather->num_workers, es);
+ if (gather->single_copy)
+ ExplainPropertyText("Single Copy",
+ gather->single_copy ? "true" : "false",
+ es);
+ }
+ break;
case T_FunctionScan:
if (es->verbose)
{