Add test for dead-end backends
authorHeikki Linnakangas <[email protected]>
Tue, 8 Oct 2024 12:06:31 +0000 (15:06 +0300)
committerHeikki Linnakangas <[email protected]>
Tue, 8 Oct 2024 12:06:31 +0000 (15:06 +0300)
commit85ec945b7880931cb506392101cb0b00209b78ba
tree3e4771a75920f326fa5cb69da38556765aea17c1
parent6a1d0d470e84f960a50cbe0cd1e2eee4b8c9baa5
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi
src/test/perl/PostgreSQL/Test/Cluster.pm
src/test/postmaster/t/001_connection_limits.pl