Fix misleading comments about background worker registration.
authorRobert Haas <rhaas@postgresql.org>
Fri, 6 May 2022 13:24:06 +0000 (09:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 6 May 2022 13:24:06 +0000 (09:24 -0400)
commit701d918a426b394620ce4d046533f77262c70829
tree8b011447c659b45676e241170d610b57791acd31
parentee97d46cdb7e23f8ee98fe22648a1c3c75a80261
Fix misleading comments about background worker registration.

Since 6bc8ef0b7f1f1df3998745a66e1790e27424aa0c, the maximum number
of backends can't change as background workers are registered, but
these comments still reflect the way things worked prior to that.

Also, per recent discussion, some modules call SetConfigOption()
from _PG_init(). It's not entirely clear to me whether we want to
regard that as a fully supported operation, but since we know it's
a thing that happens, it at least deserves a mention in the comments,
so add that.

Nathan Bossart, reviewed by Anton A. Melnikov

Discussion: http://postgr.es/m/20220419154658.GA2487941@nathanxps13
src/backend/postmaster/postmaster.c
src/backend/utils/init/postinit.c