pgsql: libpq-oauth: Print libcurl version with OAUTHDEBUG_UNSAFE_TRACE

From: Jacob Champion <jchampion(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: libpq-oauth: Print libcurl version with OAUTHDEBUG_UNSAFE_TRACE
Date: 2026-06-17 20:55:58
Message-ID: E1wZxIj-000lbV-3D@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

libpq-oauth: Print libcurl version with OAUTHDEBUG_UNSAFE_TRACE

When debugging an OAuth trace, it's helpful to know what version of Curl
is in use. The SSL library that Curl is using (which may not be the one
in use by libpq) is also relevant, and it's just as easy to get, so
print that too.

This is being added post-feature-freeze, with RMT approval, in order to
fix some tests in the face of an upstream Curl regression. A subsequent
commit will make use of it in oauth_validator. Backpatch to 18 as well.

Tested-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/CAOYmi%2B%3DkP86t%2BZFFXNQ9G6K4ht7utdmB%3DCzhP%3DZ2wvuBymOTtQ%40mail.gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/357e4d64f871cccd57390581070c4239465c2eb5

Modified Files
--------------
src/interfaces/libpq-oauth/oauth-curl.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-06-17 22:52:26 pgsql: Avoid errors during ALTER SUBSCRIPTION.
Previous Message Tom Lane 2026-06-17 15:04:56 pgsql: jsonb_plperl, jsonb_plpython: Fix unguarded recursion and loops.