jackc / pgx

PostgreSQL driver and toolkit for Go
MIT License
10.78k stars 837 forks source link

Support for require_auth configuration parameter #2090

Open phillip-gaisford opened 3 months ago

phillip-gaisford commented 3 months ago

Is your feature request related to a problem? Please describe. Postgres 16 added a new configuration parameter named _requireauth:

PostgreSQL: pgsql: libpq: Add support for require_auth to control authorized auth m

There's also an environment variable: PGREQUIREAUTH

Could it be that pgx does not handle this yet?

Describe the solution you'd like Support for use of require_auth in the database connect URI.

Describe alternatives you've considered None known. Additional context Feature documentation: https://www.postgresql.org/docs/16/libpq-connect.html#LIBPQ-CONNECT-REQUIRE-AUTH

jackc commented 3 months ago

Seems reasonable.