PostgreSQL remote access

postgresqlremote

I added remote host info on pg_hba.conf as:

host db1 all 10.6.169.88/27 trust

and also I did

listen_addresses = ‘*’
tcpip_socket = true

on postgresql.conf.

But still the remote client can not connect to db. What is the missing part about this? Remote client and host server is in different locations but with IT policies adjusted with correct ports and routes. So remote client is normally accessible to host server.

Here is what remote client gets as error:

error on client side

Best Answer

It worked after editing the correct pg-hba.conf file. Well, earlier our customer asked us to move postgresql data to other drive partition. So there are two copies of conf files. One is inside postgresql program folder and the other is in data folder. To achieve what I want I needed to edit the one inside data folder.