pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add test for dead-end backends
Date: Tue, 08 Oct 2024 12:16:43 +0000
Message-ID: <E1sy98t-002i38-0u@gemulon.postgresql.org> (raw)

Add test for dead-end backends

The code path for launching a dead-end backend because we're out of
slots was not covered by any tests, so add one. (Some tests did hit
the case of launching a dead-end backend because the server is still
starting up, though, so the gap in our test coverage wasn't as big as
it sounds.)

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85ec945b7880931cb506392101cb0b00209b78ba

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm       | 78 ++++++++++++++++++++++++++
src/test/postmaster/t/001_connection_limits.pl | 42 +++++++++++++-
2 files changed, 119 insertions(+), 1 deletion(-)



Message-ID: <E1sy98t-002i38-0u@gemulon.postgresql.org>
Permalink:  ../E1sy98t-002i38-0u@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sy98t-002i38-0u@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add test for dead-end backends
  In-Reply-To: <E1sy98t-002i38-0u@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