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 ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/130396e6c034c26617c8a73be44f9640082fd490 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(-)
