Postgres FDW connectivity issue from Azure RDS to AWS RDS - postgresql

I was using FDW extension in PostgreSQL from 2 years to load data from one database to another database. Now, one of my RDS has been moved from AWS to Azure. Now, when I tries to make connection from Azure to AWS it says the host is invalid. So, in this case FDW doesn't works if the RDS are from different service?
Error:
Detail: could not connect to server: Network is down (0x00002742/10050)
Is the server running on host "xxxxx" (10.xx.xx.xx) and accepting
TCP/IP connections on port 5432?
could not connect to server: Network is down (0x00002742/10050)
Is the server running on host "xxxxx" (10.xx.xx.xx) and accepting
TCP/IP connections on port 5432?
could not connect to server: Network is down (0x00002742/10050)
Is the server running on host "xx" (10.xx.xx.xxx) and accepting
TCP/IP connections on port 5432?
could not connect to server: Network is down (0x00002742/10050)
Is the server running on host "xx" (10.xx.xx.xx) and accepting
TCP/IP connections on port 5432?```

Related

Could not connect to Azure cloud hyperscale citus

i tried connecting my local postgresql to azure via hyperscale citus but got this error.
psql: error: could not connect to server: could not connect to server:
Connection timed out (0x0000274C/10060)
Is the server running on host "mydemo-c.postgres.database.azure.com" (20.42.29.217) and accepting
TCP/IP connections on port 5432?
I tried the steps asked earlier like re-configuring conf files and making available all listening ports but it didn't worked out. Any help?

How to connect pgadmin 4 to an external server?

I just created a server (droplets) in digital ocean, install postgresql, up there well, it works on the console. My problem is when I try to connect through pgadmin.
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "165.22.184.123" and accepting
TCP/IP connections on port 5432?
Look for information and modify the file
/etc/postgresql/10/main/postgresql.conf
where says listen_addresses='localhost' by listen_addresses='*'.
Also add a line to host all all 0.0.0.0/0 md5 to the file /etc/postgresql/10/main/pg_hba.conf and I still have the same problem. Do I have to do some additional configuration?

What can prevent me from making remote access to postgresql?

I'm trying to make remote access to postgresql that I installed on a VM with centos 7, but I get the following error:
" Unable to connect to server:
could not connect to server: Connection refused Is the server running
on host "xxx.xxx.xxx.xxx" and accepting TCP/IP connections on port
5432? "
know that I have already changed the files pg_hba.conf and postgresql.conf but this did not work

How do external connection in database at gcloud

I've created an instance in compute engine.
I did the installation of postgresql 9.6, , now i'm trying to connect in external ip using pgadmin client, but it give me an error
Connection to 35.224.170.161:5432 refused. Check that the hostname and
port are correct and that the postmaster is accepting TCP/IP
connections. Connection to 35.224.170.161:5432 refused. Check that
the hostname and port are correct and that the postmaster is accepting
TCP/IP connections.
Connection refused: connect
Connection refused: connect
I just can to access my database with putty, such as below...
https://cloud.google.com/community/tutorials/setting-up-postgres#connecting-remotely
open a port in the firewall on Cloud Platform to allow your IP
Edit pg_hba.conf to allow your IP
Edit postgresql.conf to listen on *

connecting to PgAdmin locally from amazon EC2 postgres

I have created an amazon ec2 ubuntu instance and installed postgres in it but unable to connect it. I have enabled security group HTTP(80), Postgres(5432) and ssh(22).
While connect in pgadmin following errors are thrown
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "54.172.***.***" and accepting TCP/IP connections on port 5432?