pgsql: oauth: Report cleanup errors as warnings on stderr - Mailing list pgsql-committers

From Jacob Champion
Subject pgsql: oauth: Report cleanup errors as warnings on stderr
Date
Msg-id E1vyDB5-002YEf-07@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f8c0b91a6063fc8066f1ed22c463417f1f611dfd

Modified Files
--------------
src/interfaces/libpq-oauth/oauth-curl.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Fix handling of updated tuples in the MERGE statement
Next
From: Tom Lane
Date:
Subject: pgsql: Exit after fatal errors in client-side compression code.