I want to connect two postgreSQL databases of different systems. I am using dblink to connect two postgreSQL databases.
but iam getting a connection error saying
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?
what i was trying is
select * from dblink('user=postgres host=192.168.0.5 password=geethu dbname=partition','select count(*) from part1') as qwe(tid int);
I have editted the hba.con file and also postgresql.conf file by including the ip address and settting the listen_address to *
can any one help me? Thanks in advance