pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly
Date
Msg-id E1scXb4-003Tt3-NW@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly

libpq tracing via PQtrace would uselessly print the wrong thing for
these types of messages.  With this commit, their type and contents
would be correctly listed.  (This can be verified with PQconnectStart(),
but we don't use that in libpq_pipeline, so I (Álvaro) haven't bothered
to add any tests.)

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/CAGECzQSoPHtZ4xe0raJ6FYSEiPPS+YWXBhOGo+Y1YecLgknF3g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7adec2d5fc29036a6ce78c4f4e95f85466cb5d9a

Modified Files
--------------
src/interfaces/libpq/fe-trace.c | 55 ++++++++++++++++++++++++++++++++---------
1 file changed, 43 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix comment on processes being kept over a restart
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Fix inappropriate uses of atol()