tds_fdw postgres ms sql
src: https://habr.com/ru/company/postgrespro/blog/309490/ CREATE SERVER sql01 FOREIGN DATA WRAPPER tds_fdw OPTIONS (servername 'mssql01', database 'kladr', msg_handler 'notice'); CREATE USER MAPPING FOR postgres SERVER sql01 OPTIONS (username 'iburtovoy', password 'pwd'); IMPORT FOREIGN SCHEMA kladr FROM SERVER sql01 INTO test123 OPTIONS (import_default 'true');