pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly
Date: 2024-08-09 21:56:30
Message-ID: E1scXb4-003Tt3-NW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)jeltef(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-08-10 06:41:44 pgsql: Fix inappropriate uses of atol()
Previous Message Heikki Linnakangas 2024-08-09 21:07:48 pgsql: Make BackgroundWorkerList doubly-linked