時間:2024-02-14 10:20作者:下載吧人氣:19
通過postgres_fdw 擴展,訪問遠程數據庫表
虛擬機(node107):centos7、PostgreSQL10
遠程服務器(百度云服務BBC): centos7、PostgreSQL10
在本地虛擬機上訪問遠程服務器的數據表。
[root@107 ~]# su postgre
su: user postgre does not exist
[root@107 ~]# su postgres
bash-4.2$ psql mydb postgres
could not change directory to “/root”: 權限不夠
psql (10.7)
Type “help” for help.
mydb=# CREATE EXTENSION postgres_fdw;
CREATE EXTENSION
網友評論