Re: [PoC] Federated Authn/z with OAUTHBEARER

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, Antonin Houska <ah(at)cybertec(dot)at>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Date: 2025-01-10 13:27:00
Message-ID: 06102deb-00ef-431d-a3ea-65afb246700a@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09.01.25 20:18, Jacob Champion wrote:
> It'd be sad to copy-paste the API bug into a new place, though. If
> we're going to disconnect this API from SOCKET, can we use uintptr_t
> instead on Windows? If someone eventually adds an alternative to
> PQsocket(), as Tom suggested in [2], it'd be nice not to have to
> duplicate this callback too.

Assuming that uintptr_t is the right underlying type for SOCKET, that
seems ok.

But also note that

#ifdef WIN32

might not work because WIN32 is defined by the PostgreSQL build system,
not by the compiler (see src/include/port/win32.h).

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2025-01-10 13:56:01 Re: per backend I/O statistics
Previous Message Yura Sokolov 2025-01-10 12:42:36 Re: [RFC] Lock-free XLog Reservation from WAL