Skip to content

Commit c0b7432

Browse files
committed
Use MAX_PARALLEL_WORKER_LIMIT for max_parallel_maintenance_workers
max_parallel_maintenance_workers has been introduced in 9da0cc3, and used a hardcoded limit of 1024 rather than this variable. max_parallel_workers and max_parallel_workers_per_gather already used MAX_PARALLEL_WORKER_LIMIT (1024) as their upper-bound since 6599c9a. Author: Matthias van de Meent Reviewed-by: Zhang Mingli Discussion: https://postgr.es/m/CAEze2WiCiJD+8Wig_wGPyn4vgdPjbnYXy2Rw+9KYi6izTMuP=w@mail.gmail.com
1 parent 9f95417 commit c0b7432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/misc/guc_tables.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3463,7 +3463,7 @@ struct config_int ConfigureNamesInt[] =
34633463
NULL
34643464
},
34653465
&max_parallel_maintenance_workers,
3466-
2, 0, 1024,
3466+
2, 0, MAX_PARALLEL_WORKER_LIMIT,
34673467
NULL, NULL, NULL
34683468
},
34693469

0 commit comments

Comments
 (0)