oauth: Report cleanup errors as warnings on stderr

Jacob Champion <jchampion@postgresql.org>

Commit: f8c0b91a6063fc8066f1ed22c463417f1f611dfd
Author: Jacob Champion <jchampion@postgresql.org>
Date: 2026-03-05T18:04:36Z
oauth: Report cleanup errors as warnings on stderr

Using conn->errorMessage for these "shouldn't-happen" cases will only
work if the connection itself fails. Our SSL and password callbacks
print WARNINGs when they find themselves in similar situations, so
follow their lead.

Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Discussion: https://postgr.es/m/CAOYmi%2BmEU_q9sr1PMmE-4rLwFN%3DOjyndDwFZvpsMU3RNJLrM9g%40mail.gmail.com

Files

PathChange+/−
src/interfaces/libpq-oauth/oauth-curl.c modified +10 −12

Discussion