Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 32d00d9

Browse files
author
Commitfest Bot
committed
[CF 5751] v1 - Disable parallel query by default
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5751 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/a5916f83-de79-4a40-933a-fb0d9ba2f5a0@app.fastmail.com Author(s): Scott Mead
2 parents c53f3b9 + 315c51d commit 32d00d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,8 +2855,8 @@ include_dir 'conf.d'
28552855
<xref linkend="guc-max-parallel-workers"/>. Note that the requested
28562856
number of workers may not actually be available at run time. If this
28572857
occurs, the plan will run with fewer workers than expected, which may
2858-
be inefficient. The default value is 2. Setting this value to 0
2859-
disables parallel query execution.
2858+
be inefficient. The default value is 0. Setting this value to 2 or
2859+
higher enables parallel query execution.
28602860
</para>
28612861

28622862
<para>

src/backend/optimizer/path/costsize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ int effective_cache_size = DEFAULT_EFFECTIVE_CACHE_SIZE;
140140

141141
Cost disable_cost = 1.0e10;
142142

143-
int max_parallel_workers_per_gather = 2;
143+
int max_parallel_workers_per_gather = 0;
144144

145145
bool enable_seqscan = true;
146146
bool enable_indexscan = true;

src/backend/utils/misc/guc_tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,7 @@ struct config_int ConfigureNamesInt[] =
36213621
GUC_EXPLAIN
36223622
},
36233623
&max_parallel_workers_per_gather,
3624-
2, 0, MAX_PARALLEL_WORKER_LIMIT,
3624+
0, 0, MAX_PARALLEL_WORKER_LIMIT,
36253625
NULL, NULL, NULL
36263626
},
36273627

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
# - Worker Processes -
216216

217217
#max_worker_processes = 8 # (change requires restart)
218-
#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
218+
#max_parallel_workers_per_gather = 0 # limited by max_parallel_workers
219219
#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
220220
#max_parallel_workers = 8 # number of max_worker_processes that
221221
# can be used in parallel operations

0 commit comments

Comments
 (0)