Configuring pg_hba.conf and postgresql.conf
To make unixODBC and PostgreSQL work, I had to change both pg_hba.conf and postgresql.conf, which are both found in /var/lib/pgsql/data/. I had to change the end of pg_hba.conf to look like this:
[root@slinux ~]# tail /var/lib/pgsql/data/pg_hba.conf
# on a non-local interface via the listen_addresses configuration parameter,
# or via the -i or -h command line switches.
#
# TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all ::1/128 trust
host all all 192.168.1.0/24 trust
local all all trust
[root@slinux ~]#
The postgresql.conf file has a line that looks like this:
#listen_addresses = 'localhost' # what IP address(es) to listen on;
I copied the line and changed 'localhost' to '*', and un-remarked it, so it looks like this now:
#listen_addresses = 'localhost' # what IP address(es) to listen on;
listen_addresses = '*' # what IP address(es) to listen on;
|