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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't log incomplete startup packet if it's empty
Date: 2019-03-06 20:36:58
Message-ID: E1h1dHe-0005qi-QF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2019-03-06 21:13:00 pgsql: Fix equalfuncs for accessMethod addition in 8586bf7ed8.
Previous Message Andres Freund 2019-03-06 20:23:12 Re: pgsql: Fix copy/out/readfuncs for accessMethod addition in 8586bf7ed8.