link to another postgres server
This commit is contained in:
parent
7ce1a180ee
commit
e6acac3e4b
14
postgres/foreign_data_wrapper.sql
Normal file
14
postgres/foreign_data_wrapper.sql
Normal file
@ -0,0 +1,14 @@
|
||||
CREATE EXTENSION postgres_fdw;
|
||||
|
||||
CREATE SERVER hptrow
|
||||
FOREIGN DATA WRAPPER postgres_fdw
|
||||
OPTIONS (host 'hptrow.me', port '54339', dbname 'ubm');
|
||||
|
||||
CREATE USER MAPPING FOR ptrowbridge
|
||||
SERVER hptrow
|
||||
OPTIONS (user 'ptrowbridge', password 'gyaswddh1983');
|
||||
|
||||
CREATE SCHEMA frlarp;
|
||||
|
||||
IMPORT FOREIGN SCHEMA rlarp
|
||||
FROM SERVER hptrow INTO frlarp;
|
Loading…
Reference in New Issue
Block a user