pgsql: Don't send "cannot connect" errors on invalid startup packet - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Don't send "cannot connect" errors on invalid startup packet
Date
Msg-id E1rJfot-00CgpS-HX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5632d6e18a8afd586a99f680eddddc38b4ead769

Modified Files
--------------
src/backend/postmaster/postmaster.c | 65 +++++++++++++++++++------------------
1 file changed, 34 insertions(+), 31 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: pg_stat_statements: Add TAP test for testing restarts
Next
From: Tomas Vondra
Date:
Subject: pgsql: Minor cleanup of the BRIN parallel build code