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

Andrew Dunstan <andrew@dunslane.net>

Commit: 342cb650e0ffc7a007a12a419be04d47da4bd8cc
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2019-03-06T20:36:41Z
Releases: 12.0
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: https://postgr.es/m/a1379a72-2958-1ed0-ef51-09a21219b155@2ndQuadrant.com

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +25 −8

Discussion