Don't send "cannot connect" errors on invalid startup packet
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 30 Dec 2023 20:18:54 +0000 (22:18 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 30 Dec 2023 20:18:54 +0000 (22:18 +0200)
commit5632d6e18a8afd586a99f680eddddc38b4ead769
tree94184194abff8edb66c57cd72cf25e1a85962154
parent4710b67d4d35832223dc49ccc2ccc043dff53793
Don't send "cannot connect" errors on invalid startup packet

Commit 16671ba6e7 moved the code that sends "sorry, too many clients
already" and other such messages, but it had the effect that we would
send that error even if the the startup packet processing failed, e.g.
because the client sent an invalid startup packet. That was not
intentional.

Spotted while reading the code again.
src/backend/postmaster/postmaster.c