pgsql: libpq: Add suppress argument to pqTraceOutputNchar

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq: Add suppress argument to pqTraceOutputNchar
Date: 2024-08-09 00:38:42
Message-ID: E1scDeU-003LSN-3W@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

libpq: Add suppress argument to pqTraceOutputNchar

In future commits we're going to trace authentication related messages.
Some of these messages contain challenge bytes as part of a
challenge-response flow. Since these bytes are different for every
connection, we want to normalize them when the PQTRACE_REGRESS_MODE
trace flag is set. This commit modifies pqTraceOutputNchar to take a
suppress argument, which makes it possible to do so.

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/4eb179e5bf7a5551ce3963d1563d6c9968c1a257

Modified Files
--------------
src/interfaces/libpq/fe-trace.c | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-08-09 05:05:03 pgsql: Change the misleading local end_lsn for prepared transactions.
Previous Message Alvaro Herrera 2024-08-08 23:36:46 pgsql: Refuse ATTACH of a table referenced by a foreign key