create extension postgres_fdw; create server server_remote_db foreign data wrapper postgres_fdw options(host '10.10.10.10',port '7788',dbname 'test_db'); create user mapping for test_role_user server_remote_db options(user 'test_role',password 'test_role'); grant all on foreign server server_remote_db to test_role; import foreign schema public from server server_remote_db into public;
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。