libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly
authorAlvaro Herrera <[email protected]>
Fri, 9 Aug 2024 21:55:01 +0000 (17:55 -0400)
committerAlvaro Herrera <[email protected]>
Fri, 9 Aug 2024 21:55:01 +0000 (17:55 -0400)
commit7adec2d5fc29036a6ce78c4f4e95f85466cb5d9a
tree4d1075f1048e3372b4efc86cbca35c334420695d
parenta79ed10e6c6b43cc43a51a5f5bcc29252b4bb6dc
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 <[email protected]>
Discussion: https://postgr.es/m/CAGECzQSoPHtZ4xe0raJ6FYSEiPPS+YWXBhOGo+Y1YecLgknF3g@mail.gmail.com
src/interfaces/libpq/fe-trace.c