After configuring the network environment in PostgreSQL, it is usually a good idea to test it out.
You can use the psql
program to test connections to the PostgreSQL server from a remote client:
D:\Postgresql_Project\bin>psql -h 192.168.12.10 hrdb agovil Password for user agovil: psql (9.3.4) WARNING: Console code page (437) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page "Notes for Windows users" for details. Type "help" for help. Hrdb=>
After enabling client authentication between the PostgreSQL server and the client application, as well as after configuring access control rules in the host's pg_hba.conf
configuration file, it is a good idea to test for remote connectivity.
This will help you to find out whether the access control rules are configured correctly in the pg_hba.conf
file and whether the clients face any connection errors despite being allowed...