]> 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:08:47 +0000 (01:08 +0900)
commitcd777e27e2038f2c39f0f2d5d68d45c67bdf89e8
treed7b38e49dd1c84731956c27028ef84495d38e2c7
parent130396e6c034c26617c8a73be44f9640082fd490
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