X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0439D5E3F15 for ; Mon, 23 Aug 2004 16:01:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47170-02 for ; Mon, 23 Aug 2004 19:01:47 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D45805E37CB for ; Mon, 23 Aug 2004 16:01:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7NJ1j1v009890; Mon, 23 Aug 2004 15:01:45 -0400 (EDT) To: my thi ho Cc: pgsql-performance@postgresql.org Subject: Re: postgresql 8.0 beta - fail to collect statsistic In-reply-to: <20040823143310.93307.qmail@web54104.mail.yahoo.com> References: <20040823143310.93307.qmail@web54104.mail.yahoo.com> Comments: In-reply-to my thi ho message dated "Mon, 23 Aug 2004 07:33:10 -0700" Date: Mon, 23 Aug 2004 15:01:45 -0400 Message-ID: <9889.1093287705@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/314 X-Sequence-Number: 7950 my thi ho 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("", &(pgStatAddr.sin_addr)); then > it works You were fixing the symptom and not the problem. regards, tom lane