Re: postgresql 8.0 beta - fail to collect statsistic - Mailing list pgsql-performance

From Tom Lane
Subject Re: postgresql 8.0 beta - fail to collect statsistic
Date
Msg-id 9889.1093287705@sss.pgh.pa.us
Whole thread Raw
In response to postgresql 8.0 beta - fail to collect statsistic  (my thi ho <mthoatbanjo@yahoo.com>)
Responses Re: postgresql 8.0 beta - fail to collect statsistic  (Steve Bergman <steve@rueb.com>)
List pgsql-performance
my thi ho <mthoatbanjo@yahoo.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

pgsql-performance by date:

Previous
From: my thi ho
Date:
Subject: postgresql 8.0 beta - fail to collect statsistic
Next
From: Steve Bergman
Date:
Subject: Re: postgresql 8.0 beta - fail to collect statsistic