时间:2024-02-14 10:20作者:下载吧人气:21
通过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
网友评论