Re: postgres_fdw, dblink: Validate use_scram_passthrough values

From: Matheus Alcantara <matheusssilv97(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: postgres_fdw, dblink: Validate use_scram_passthrough values
Date: 2026-05-27 18:22:15
Message-ID: 680fb955-59a4-4145-af8b-311cbda3973b@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 27/05/26 11:41, Fujii Masao wrote:
> Hi,
>
> The use_scram_passthrough option in postgres_fdw and dblink is
> intended to accept only boolean values. However, unlike other boolean
> options such as keep_connections, its value is not currently
> validated.
>
> As a result, invalid values are accepted unexpectedly, for example:
>
> CREATE SERVER test_server
> FOREIGN DATA WRAPPER postgres_fdw
> OPTIONS (use_scram_passthrough 'invalid');
>
> Attached patch updates postgres_fdw and dblink to validate
> use_scram_passthrough values and throw an error for invalid input.
>

Hi,

Thank you for the patch. It looks correct to me and it fix the issue
as mentioned.

--
Matheus Alcantara
EDB: https://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-05-27 18:23:04 Re: future of PQfn()
Previous Message Álvaro Herrera 2026-05-27 18:20:48 Re: effective_wal_level is not decreasing after using REPACK (CONCURRENTLY)