pgsql: Use MAX_PARALLEL_WORKER_LIMIT for max_parallel_maintenance_worke

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use MAX_PARALLEL_WORKER_LIMIT for max_parallel_maintenance_worke
Date: 2024-10-13 02:35:40
Message-ID: E1szoSK-000WCV-Ux@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use MAX_PARALLEL_WORKER_LIMIT for max_parallel_maintenance_workers

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

Author: Matthias van de Meent
Reviewed-by: Zhang Mingli
Discussion: https://postgr.es/m/CAEze2WiCiJD+8Wig_wGPyn4vgdPjbnYXy2Rw+9KYi6izTMuP=w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c0b74323dc7b47644f074cf98597723ca55b2309

Modified Files
--------------
src/backend/utils/misc/guc_tables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-10-13 20:44:34 pgsql: Fixup for pg_set_relation_stats().
Previous Message Tom Lane 2024-10-12 18:56:21 pgsql: Correctly identify which EC members are computable at a plan nod