pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnec
Date: Thu, 08 Mar 2018 16:26:58 +0000
Message-ID: <E1etyNe-0004EC-6O@gemulon.postgresql.org> (raw)

Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnections.

We were independently checking ReservedBackends < MaxConnections and
max_wal_senders < MaxConnections, but because walsenders aren't allowed
to use superuser-reserved connections, that's really the wrong thing.
Correct behavior is to insist on ReservedBackends + max_wal_senders being
less than MaxConnections.  Fix the code and associated documentation.

This has been wrong for a long time, but since the situation probably
hardly ever arises in the field (especially pre-v10, when the default
for max_wal_senders was zero), no back-patch.

Discussion: https://postgr.es/m/28271.1520195491@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4e0c743c18bf5435a4850510c5c74b3521c3e1e5

Modified Files
--------------
doc/src/sgml/config.sgml            | 23 ++++++++++++++---------
src/backend/postmaster/postmaster.c | 15 ++++++---------
src/backend/utils/init/postinit.c   |  2 +-
src/backend/utils/misc/guc.c        |  5 +++--
4 files changed, 24 insertions(+), 21 deletions(-)



Message-ID: <E1etyNe-0004EC-6O@gemulon.postgresql.org>
Permalink:  ../E1etyNe-0004EC-6O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1etyNe-0004EC-6O@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnec
  In-Reply-To: <E1etyNe-0004EC-6O@gemulon.postgresql.org>
  References: <E1etyNe-0004EC-6O@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