"Uwe C. Schroeder" <uwe@oss4u.com> writes:
> have you enabled tcp in postgresql.conf ?
> the parameter in question is pretty much on top of the file and should read
> tcpip_socket = true
And if you have set that, look at the system's packet filtering rules
--- recent Red Hat releases tend to disallow traffic to port 5432 by
default.
"Connection refused" is a kernel-level refusal --- it means that the
postmaster never got your request at all, either because it wasn't
listening on that port or because something in-between blocked the
packet. So there's no point in looking at your pg_hba configuration.
Some troubleshooting info is in these parts of the docs:
http://www.postgresql.org/docs/8.0/static/postmaster-start.html#CLIENT-CONNECTION-PROBLEMShttp://www.postgresql.org/docs/8.0/static/client-authentication-problems.html
regards, tom lane