pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert the addition of GetMaxBackends() and related stuff.
Date: Tue, 12 Apr 2022 19:12:34 +0000
Message-ID: <E1neLwI-000DKH-86@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1neLwI-000DKH-86@gemulon.postgresql.org>
Permalink:  ../E1neLwI-000DKH-86@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1neLwI-000DKH-86@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Revert the addition of GetMaxBackends() and related stuff.
  In-Reply-To: <E1neLwI-000DKH-86@gemulon.postgresql.org>
  References: <E1neLwI-000DKH-86@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox