pgsql: Don't log incomplete startup packet if it's empty

Started by Andrew Dunstanover 7 years ago1 messagescomitters
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

Don't log incomplete startup packet if it's empty

This will stop logging cases where, for example, a monitor opens a
connection and immediately closes it. If the packet contains any data an
incomplete packet will still be logged.

Author: Tom Lane

Discussion: /messages/by-id/a1379a72-2958-1ed0-ef51-09a21219b155@2ndQuadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/342cb650e0ffc7a007a12a419be04d47da4bd8cc

Modified Files
--------------
src/backend/postmaster/postmaster.c | 33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)