summaryrefslogtreecommitdiff
path: root/src/backend/optimizer
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-08-16 08:09:15 -0400
committerRobert Haas <rhaas@postgresql.org>2016-08-16 08:09:15 -0400
commitf85b1a84152f7bf019fd7a2c5eede97867dcddbb (patch)
tree5bd69a379fa7734d0f4a9275edac2ea6f54d86c5 /src/backend/optimizer
parentb5bce6c1ec6061c8a4f730d927e162db7e2ce365 (diff)
Disable parallel query by default.
Per discussion, set the default value of max_parallel_workers_per_gather to 0 in 9.6 only. We'll leave it enabled in master so that it gets more testing and in the hope that it can be enable by default in v10.
Diffstat (limited to 'src/backend/optimizer')
-rw-r--r--src/backend/optimizer/path/costsize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c
index 2a49639f125..4ad1782bbf7 100644
--- a/src/backend/optimizer/path/costsize.c
+++ b/src/backend/optimizer/path/costsize.c
@@ -113,7 +113,7 @@ int effective_cache_size = DEFAULT_EFFECTIVE_CACHE_SIZE;
Cost disable_cost = 1.0e10;
-int max_parallel_workers_per_gather = 2;
+int max_parallel_workers_per_gather = 0;
bool enable_seqscan = true;
bool enable_indexscan = true;