]> git.ipfire.org Git - thirdparty/postgresql.git/commit
dblink: Reject use_scram_passthrough on foreign-data wrappers
authorFujii Masao <fujii@postgresql.org>
Mon, 25 May 2026 16:07:24 +0000 (01:07 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 25 May 2026 16:07:24 +0000 (01:07 +0900)
commite2b8813403b19609a3f194b1d4cdb88df5aa4c7d
treeac8f1d0d61e9a6610cde64816985159a2df29d26
parent5f5165e2fe193cc2c9e9078992cdb277013e8dec
dblink: Reject use_scram_passthrough on foreign-data wrappers

Previously, dblink accepted the use_scram_passthrough option on
foreign-data wrappers via ALTER FOREIGN DATA WRAPPER dblink_fdw
OPTIONS, even though the setting had no effect there.

use_scram_passthrough should be only meaningful for foreign servers
and user mappings, so this commit updates dblink to accept the option
only in those contexts.

Backpatch to v18, where use_scram_passthrough was introduced.

Author: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwEJ8rZjmbOvCicyr4vbuLio082bNTde0WNoSWaWr9wVcg@mail.gmail.com
Backpatch-through: 18
contrib/dblink/dblink.c
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql