Revert the addition of GetMaxBackends() and related stuff.
authorRobert Haas <[email protected]>
Tue, 12 Apr 2022 18:45:23 +0000 (14:45 -0400)
committerRobert Haas <[email protected]>
Tue, 12 Apr 2022 18:45:23 +0000 (14:45 -0400)
commit7fc0e7de9fb8306e84d1c15211aba4308f694455
treece8d0213123959bce52699e8e8d837d46758a2f6
parent2c9381840fe2d6d1c3179350493fe5fd3dcf90b5
Revert the addition of GetMaxBackends() and related stuff.

This reverts commits 0147fc74567596aa64f23, and 5ecd018.
There is no longer agreement that introducing this function
was the right way to address the problem. The consensus now
seems to favor trying to make a correct value for MaxBackends
available to mdules executing their _PG_init() functions.

Nathan Bossart

Discussion: http://postgr.es/m/20220323045229.i23skfscdbvrsuxa@jrouhaud
19 files changed:
src/backend/access/nbtree/nbtutils.c
src/backend/access/transam/multixact.c
src/backend/access/transam/twophase.c
src/backend/commands/async.c
src/backend/libpq/pqcomm.c
src/backend/postmaster/auxprocess.c
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/dsm.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procsignal.c
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/predicate.c
src/backend/storage/lmgr/proc.c
src/backend/utils/activity/backend_status.c
src/backend/utils/adt/lockfuncs.c
src/backend/utils/init/postinit.c
src/include/miscadmin.h