1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

Use MAX_PARALLEL_WORKER_LIMIT for max_parallel_maintenance_workers

max_parallel_maintenance_workers has been introduced in 9da0cc3528,
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
6599c9ac33.

Author: Matthias van de Meent
Reviewed-by: Zhang Mingli
Discussion: https://postgr.es/m/CAEze2WiCiJD+8Wig_wGPyn4vgdPjbnYXy2Rw+9KYi6izTMuP=w@mail.gmail.com
This commit is contained in:
Michael Paquier
2024-10-13 11:20:30 +09:00
parent 9f954177b1
commit c0b74323dc

View File

@ -3463,7 +3463,7 @@ struct config_int ConfigureNamesInt[] =
NULL
},
&max_parallel_maintenance_workers,
2, 0, 1024,
2, 0, MAX_PARALLEL_WORKER_LIMIT,
NULL, NULL, NULL
},