pgsql: Fix comment for MAX_BACKENDS.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix comment for MAX_BACKENDS.
Date: 2025-02-24 21:02:20
Message-ID: E1tmfam-000VhY-2B@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix comment for MAX_BACKENDS.

This comment mentions that we check that the configured number of
backends does not exceed MAX_BACKENDS in RegisterBackgroundWorker()
and relevant GUC check hooks, neither of which has those checks
anymore. To fix, adjust this comment to say that we do the check
in InitializeMaxBackends().

Oversights in commits 6bc8ef0b7f and 0b1fe1413e.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/Z7zOEzz8lNjaU9yf%40nathan

Branch
------
master

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

Modified Files
--------------
src/include/storage/procnumber.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2025-02-24 21:11:19 pgsql: Delay extraction of TIDBitmap per page offsets
Previous Message Robert Haas 2025-02-24 17:11:32 pgsql: libpq: Trace all NegotiateProtocolVersion fields