Dirk Dil <dirk(dot)dil(at)pt(dot)lu> writes:
> I need some help getting postgresql started on an amd64 machine running
> gentoo 2005.1.
> LOG: could not send test message on socket for statistics collector:
> Operation not permitted
> LOG: disabling statistics collector for lack of working socket
> PostgreSQL error message: Connection to database failed
> couldn't open socket: connection refused
Both of these look like kernel packet filtering is rejecting the
traffic. Take a look at your iptables configuration --- it's probably
being overly restrictive about local-loopback (127.0.0.1) connections.
regards, tom lane