aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeGather.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-04-15 11:49:41 -0400
committerRobert Haas <rhaas@postgresql.org>2016-04-15 11:52:18 -0400
commit5702277ca97396384eaf5c58d582b79b9984ce73 (patch)
treee518f6d5bcc8a1f7c57d49eaaa05530cf91752c7 /src/backend/executor/nodeGather.c
parent6b85d4ba9b09dc94cf1b14aef517da095a83cdbb (diff)
downloadpostgresql-5702277ca97396384eaf5c58d582b79b9984ce73.tar.gz
postgresql-5702277ca97396384eaf5c58d582b79b9984ce73.zip
Tweak EXPLAIN for parallel query to show workers launched.
The previous display was sort of confusing, because it didn't distinguish between the number of workers that we planned to launch and the number that actually got launched. This has already confused several people, so display both numbers and label them clearly. Julien Rouhaud, reviewed by me.
Diffstat (limited to 'src/backend/executor/nodeGather.c')
-rw-r--r--src/backend/executor/nodeGather.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/executor/nodeGather.c b/src/backend/executor/nodeGather.c
index 3f0ed696327..3834ed678cb 100644
--- a/src/backend/executor/nodeGather.c
+++ b/src/backend/executor/nodeGather.c
@@ -166,6 +166,7 @@ ExecGather(GatherState *node)
*/
pcxt = node->pei->pcxt;
LaunchParallelWorkers(pcxt);
+ node->nworkers_launched = pcxt->nworkers_launched;
/* Set up tuple queue readers to read the results. */
if (pcxt->nworkers_launched > 0)