Revert the addition of GetMaxBackends() and related stuff.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/nbtutils.c | modified | +2 −2 |
| src/backend/access/transam/multixact.c | modified | +9 −22 |
| src/backend/access/transam/twophase.c | modified | +1 −2 |
| src/backend/commands/async.c | modified | +5 −7 |
| src/backend/libpq/pqcomm.c | modified | +1 −2 |
| src/backend/postmaster/auxprocess.c | modified | +1 −1 |
| src/backend/postmaster/postmaster.c | modified | +8 −6 |
| src/backend/storage/ipc/dsm.c | modified | +1 −1 |
| src/backend/storage/ipc/procarray.c | modified | +8 −17 |
| src/backend/storage/ipc/procsignal.c | modified | +14 −23 |
| src/backend/storage/ipc/sinvaladt.c | modified | +2 −2 |
| src/backend/storage/lmgr/deadlock.c | modified | +15 −16 |
| src/backend/storage/lmgr/lock.c | modified | +10 −13 |
| src/backend/storage/lmgr/predicate.c | modified | +5 −5 |
| src/backend/storage/lmgr/proc.c | modified | +8 −9 |
| src/backend/utils/activity/backend_status.c | modified | +40 −48 |
| src/backend/utils/adt/lockfuncs.c | modified | +2 −3 |
| src/backend/utils/init/postinit.c | modified | +9 −46 |
| src/include/miscadmin.h | modified | +1 −2 |
Discussion
- make MaxBackends available in _PG_init 132 messages · 2020-09-21 → 2022-05-16