我想连接两个不同系统的postgreSQL数据库。我正在使用 dblink 连接两个 postgreSQL 数据库。
但我收到连接错误说
ERROR: could not establish connection
DETAIL: could not connect to server: No route to host (0x00002751/10065)
Is the server running on host "192.168.0.5" and accepting
TCP/IP connections on port 5432?
********** Error **********
ERROR: could not establish connection
SQL state: 08001
Detail: could not connect to server: No route to host (0x00002751/10065)
Is the server running on host "192.168.0.5" and accepting
TCP/IP connections on port 5432?
我正在尝试的是
select * from dblink('user=postgres host=192.168.0.5 password=geethu dbname=partition','select count(*) from part1') as qwe(tid int);
我编辑了 hba.con 文件和 postgresql.conf 文件,包括 IP 地址并将listen_address 设置为 *
谁能帮我?提前致谢