| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: dblink: Reject use_scram_passthrough on foreign-data wrappers |
| Date: | 2026-05-25 16:09:25 |
| Message-ID: | E1wRXrp-0014mB-06@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHGQGwEJ8rZjmbOvCicyr4vbuLio082bNTde0WNoSWaWr9wVcg@mail.gmail.com
Backpatch-through: 18
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e2b8813403b19609a3f194b1d4cdb88df5aa4c7d
Modified Files
--------------
contrib/dblink/dblink.c | 11 +++++++++--
contrib/dblink/expected/dblink.out | 5 +++++
contrib/dblink/sql/dblink.sql | 4 ++++
3 files changed, 18 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-05-25 16:09:42 | pgsql: dblink: Reject use_scram_passthrough on foreign-data wrappers |
| Previous Message | Fujii Masao | 2026-05-25 15:53:21 | pgsql: dblink: Give user mapping precedence for use_scram_passthrough |