#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;
}}


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
目次
ダブルクリックで閉じるTOP | 閉じる
GO TO TOP