Thread: pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly

pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly

From
Alvaro Herrera
Date:
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(-)