Re: Changing gssencmode default in Psycopg

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Changing gssencmode default in Psycopg
Date: 2025-08-25 11:17:20
Message-ID: CA+mi_8ZWoF1U8VuWn8OXY_aCVLHgKhf0wTaF5sboyK4q_YQKAw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 23 Aug 2025 at 13:26, Daniele Varrazzo
<daniele(dot)varrazzo(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-08-25 11:35:48 Re: Conflict detection for update_deleted in logical replication
Previous Message shveta malik 2025-08-25 11:03:31 Re: Conflict detection for update_deleted in logical replication