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 <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: 
https://postgr.es/m/cahgqgwej8rzjmbovcicyr4vbulio082bntde0wnoswawr9w...@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(-)

Reply via email to