libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 7adec2d5fc29036a6ce78c4f4e95f85466cb5d9a
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2024-08-09T21:55:01Z
Releases: 18.0
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

Files

PathChange+/−
src/interfaces/libpq/fe-trace.c modified +43 −12

Discussion