May 2019
Intermediate to advanced
600 pages
20h 46m
English
We will first describe the variant that uses dblink:
postgres=# CREATE FOREIGN DATA WRAPPER postgresql VALIDATOR postgresql_fdw_validator;CREATE FOREIGN DATA WRAPPERpostgres=# CREATE SERVER otherdb FOREIGN DATA WRAPPER postgresql OPTIONS (host 'foo', dbname 'otherdb', port '5432');CREATE SERVERpostgres=# CREATE USER MAPPING FOR PUBLICSERVER otherdb;CREATE USER MAPPING
Read now
Unlock full access