Re: [oauth] Stabilize the libpq-oauth ABI (and allow alternative implementations?)

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, "Jonathan Gonzalez V(dot)" <jonathan(dot)abdiel(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [oauth] Stabilize the libpq-oauth ABI (and allow alternative implementations?)
Date: 2026-03-17 06:33:15
Message-ID: CAN4CZFPO9uREfJX3ne_TZU6901u8pvaToOHm17fUn52pWsC93w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

+/*
+ * Wrapper around PGoauthBearerRequest.async() which applies poison during the
+ * callback when necessary.
+ */
+static int
+do_async(fe_oauth_state *state, PGoauthBearerRequestV2 *request)
+{
+ PGconn *conn = state->conn;
+ int ret;

Shouldn't this return PostgresPollingStatusType, and declare ret using it?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Junwang Zhao 2026-03-17 06:35:29 Re: SQL Property Graph Queries (SQL/PGQ)
Previous Message Zsolt Parragi 2026-03-17 06:22:53 Re: Serverside SNI support in libpq