- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2017-05-07T22:21:23+09:00","","")
[[PostgreSQL]]
#geshi{{
CREATE EXTENSION postgres_fdw;
CREATE SERVER postgres_server FOREIGN DATA WRAPPER postgres_fdw
OPTIONS (host 'localhost', dbname 'test', port '5434');
CREATE USER MAPPING FOR public SERVER app1
OPTIONS (USER 'postgres', password '');
CREATE FOREIGN TABLE fs_warehouse (
id INT,
name text
) SERVER postgres_server
OPTIONS (TABLE_NAME 'fs_warehouse');
SELECT * FROM fs_warehouse;
DROP FOREIGN TABLE fs_warehouse;
DROP USER MAPPING FOR public SERVER postgres_server;
DROP SERVER postgres_server CASCADE;
}}