Re: Thoughts on a "global" client configuration? - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: Thoughts on a "global" client configuration?
Date
Msg-id CAOYmi+=4tJnbYJ7JiRCUm28fdZpJ3eiojMcHS_aytroaHipKyw@mail.gmail.com
Whole thread Raw
In response to Re: Thoughts on a "global" client configuration?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Wed, Oct 8, 2025 at 1:40 PM Andrew Dunstan <andrew@dunslane.net> wrote:
> If we set the default at verify-full (that would be my vote), someone
> can undo that for a particular installation by setting PGSSLMODE=prefer
> globally on their system

I don't think we should ever tell users to set PGSSLMODE=prefer. It's
really sticky, and you can't know that third-party code won't defer to
it instead of overriding it when they see it defined. A quick Github
code search turns up a few people doing exactly that.

If we make the change at the default level instead, we remain in
control of the override priority, so users will be reverting to the
previous behavior instead of introducing new untested behavior.

--Jacob



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: [PATCH] Remove unused #include's in src/backend/commands/*
Next
From: Andres Freund
Date:
Subject: Re: [PATCH] Remove unused #include's in src/backend/commands/*