my thi ho <mthoatbanjo(at)yahoo(dot)com> writes:
> I got this error message:
> LOG: could not create IPv6 socket: Address family not
> supported by protocol
> LOG: could not bind socket for statistics collector:
> Cannot assign requested address
> LOG: disabling statistics collector for lack of
> working socket
You have a broken networking setup, or possibly a broken DNS setup.
The machine should accept connections to 127.0.0.1 ... if it does not,
find out why not.
> I already have a look at pgstat.c but dun know where
> to fix it ( with 7.3.1 i just change the line
> inet_aton("127.0.0.1", &(pgStatAddr.sin_addr));
> to inet_aton("<myip>", &(pgStatAddr.sin_addr)); then
> it works
You were fixing the symptom and not the problem.
regards, tom lane