Re: Changing gssencmode default in Psycopg - Mailing list pgsql-hackers

From Daniele Varrazzo
Subject Re: Changing gssencmode default in Psycopg
Date
Msg-id CA+mi_8ZWoF1U8VuWn8OXY_aCVLHgKhf0wTaF5sboyK4q_YQKAw@mail.gmail.com
Whole thread Raw
In response to Changing gssencmode default in Psycopg  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List pgsql-hackers
On Sat, 23 Aug 2025 at 13:26, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:

> I am considering changing the
> parameter default to `disable` [2] in the libpq that we ship in the
> macOS binary packages.

I also see that in libpq 16 the function `PQconnectionUsedGSSAPI()`
was introduced [1]. This would enable us to detect if a connection is
established on GSS but no parameter was explicitly set in the env var
or connection string.

So, a responsible thing we could do would be to start, in the next
bugfix release, to raise a warning if we detect such combination, and
warn the user about the upcoming change, suggesting them to explicitly
set the connection string parameter or the env var to "prefer" or
"require",

[1]  https://www.postgresql.org/docs/16/libpq-status.html#LIBPQ-PQCONNECTIONUSEDGSSAPI

-- Daniele



pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Conflict detection for update_deleted in logical replication
Next
From: Amit Kapila
Date:
Subject: Re: Conflict detection for update_deleted in logical replication