Thread: pgsql: Revert the addition of GetMaxBackends() and related stuff.

pgsql: Revert the addition of GetMaxBackends() and related stuff.

From
Robert Haas
Date:
Revert the addition of GetMaxBackends() and related stuff.

This reverts commits 0147fc7, 4567596, aa64f23, 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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7fc0e7de9fb8306e84d1c15211aba4308f694455

Modified Files
--------------
src/backend/access/nbtree/nbtutils.c        |  4 +-
src/backend/access/transam/multixact.c      | 31 +++-------
src/backend/access/transam/twophase.c       |  3 +-
src/backend/commands/async.c                | 12 ++--
src/backend/libpq/pqcomm.c                  |  3 +-
src/backend/postmaster/auxprocess.c         |  2 +-
src/backend/postmaster/postmaster.c         | 14 +++--
src/backend/storage/ipc/dsm.c               |  2 +-
src/backend/storage/ipc/procarray.c         | 25 +++-----
src/backend/storage/ipc/procsignal.c        | 37 +++++-------
src/backend/storage/ipc/sinvaladt.c         |  4 +-
src/backend/storage/lmgr/deadlock.c         | 31 +++++-----
src/backend/storage/lmgr/lock.c             | 23 ++++----
src/backend/storage/lmgr/predicate.c        | 10 ++--
src/backend/storage/lmgr/proc.c             | 17 +++---
src/backend/utils/activity/backend_status.c | 88 +++++++++++++----------------
src/backend/utils/adt/lockfuncs.c           |  5 +-
src/backend/utils/init/postinit.c           | 55 +++---------------
src/include/miscadmin.h                     |  3 +-
19 files changed, 142 insertions(+), 227 deletions(-)