pgsql: dblink: Give user mapping precedence for use_scram_passthrough

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: dblink: Give user mapping precedence for use_scram_passthrough
Date: 2026-05-25 15:53:01
Message-ID: E1wRXbw-0014e4-31@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

dblink: Give user mapping precedence for use_scram_passthrough

Commit 97f6fc10fff changed postgres_fdw so that user-mapping settings
override foreign server settings for use_scram_passthrough. This commit
applies the same behavior to dblink.

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/5f5165e2fe193cc2c9e9078992cdb277013e8dec

Modified Files
--------------
contrib/dblink/dblink.c | 10 ++++++++--
contrib/dblink/t/001_auth_scram.pl | 24 ++++++++++++++++++++++++
doc/src/sgml/dblink.sgml | 10 ++++++----
3 files changed, 38 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-05-25 15:53:21 pgsql: dblink: Give user mapping precedence for use_scram_passthrough
Previous Message Fujii Masao 2026-05-25 15:48:21 pgsql: postgres_fdw: Give user mapping precedence for use_scram_passthr