From: | "Gaisford, Phillip" <phillip(dot)gaisford(at)hpe(dot)com> |
---|---|
To: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Issue with configuration parameter "require_auth" |
Date: | 2024-07-17 18:58:10 |
Message-ID: | DM4PR84MB151709CC219E9ABDA4506EAF8DA32@DM4PR84MB1517.NAMPRD84.PROD.OUTLOOK.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I think Tom is right.
I am using v5.6 of https://github.com/jackc/pgx
I quick read of the code reveals no awareness of require_auth, so I have filed an issue with the project.
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Date: Wednesday, July 17, 2024 at 1:11 PM
To: Gaisford, Phillip <phillip(dot)gaisford(at)hpe(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Issue with configuration parameter "require_auth"
"Gaisford, Phillip" <phillip(dot)gaisford(at)hpe(dot)com> writes:
> So what would a connection URI using require_auth properly look like? Here’s what I have been trying:
> url: "postgres://postgres:postgres(at)localhost:5432/aioli?require_auth=password&application_name=aioli-controller&sslmode=disable&sslrootcert=",
Hm, that looks right (and behaves as-expected here).
What version of what client-side stack are you using? For me, libpq 16
and up recognize this parameter, while older versions fail with
psql: error: invalid URI query parameter: "require_auth"
If you're using some other client driver, maybe it doesn't know this
parameter and guesses that it should be passed to the server.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2024-07-17 20:48:14 | Re: Planet Postgres and the curse of AI |
Previous Message | Kashif Zeeshan | 2024-07-17 17:43:33 | Re: Planet Postgres and the curse of AI |