dblink: SCRAM authentication pass-through
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 26 Mar 2025 09:05:49 +0000 (10:05 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 26 Mar 2025 09:49:23 +0000 (10:49 +0100)
commit3642df265d09779443a9f44f5cb873df40974e89
tree536f59d1a88cc1ec51f062c703b0b16799a24667
parenta3b6dfd410699a19209be3cb3c7a74e5ff1da830
dblink: SCRAM authentication pass-through

This enables SCRAM authentication for dblink (using dblink_fdw) when
connecting to a foreign server without having to store a plain-text
password on user mapping options

This uses the same approach as it was implemented for postgres_fdw in
commit 761c79508e7.  (It also contains the equivalent of the
subsequent fixes 76563f88cfb and d2028e9bbc1.)

Author: Matheus Alcantara <mths.dev@pm.me>
Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/CAFY6G8ercA1KES%3DE_0__R9QCTR805TTyYr1No8qF8ZxmMg8z2Q%40mail.gmail.com
contrib/dblink/Makefile
contrib/dblink/dblink.c
contrib/dblink/meson.build
contrib/dblink/t/001_auth_scram.pl [new file with mode: 0644]
doc/src/sgml/dblink.sgml
doc/src/sgml/postgres-fdw.sgml