summaryrefslogtreecommitdiff
path: root/src/include/access/parallel.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-10-16 17:18:05 -0400
committerRobert Haas <rhaas@postgresql.org>2015-10-16 17:18:05 -0400
commitb0b0d84b3d663a148022e900ebfc164284a95f55 (patch)
tree4bf51bc140d3a8a0a094e1353c57c40bfa4315ca /src/include/access/parallel.h
parentafdfcd3f7617c9b7be5966d66ddabdc2e92eb99b (diff)
Allow a parallel context to relaunch workers.
This may allow some callers to avoid the overhead involved in tearing down a parallel context and then setting up a new one, which means releasing the DSM and then allocating and populating a new one. I suspect we'll want to revise the Gather node to make use of this new capability, but even if not it may be useful elsewhere and requires very little additional code.
Diffstat (limited to 'src/include/access/parallel.h')
-rw-r--r--src/include/access/parallel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h
index 44f0616cb86..d4b7c5dd75b 100644
--- a/src/include/access/parallel.h
+++ b/src/include/access/parallel.h
@@ -35,6 +35,7 @@ typedef struct ParallelContext
dlist_node node;
SubTransactionId subid;
int nworkers;
+ int nworkers_launched;
parallel_worker_main_type entrypoint;
char *library_name;
char *function_name;