pgsql: Add test for dead-end backends

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add test for dead-end backends
Date: 2024-10-08 12:16:43
Message-ID: E1sy98t-002i38-0u@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)anarazel(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-10-08 12:49:19 pgsql: Fix typo and run pgperltidy on newly-added test
Previous Message Tatsuo Ishii 2024-10-08 11:26:20 pgsql: Doc: add check to detect non-breaking spaces in the docs.