Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C6E70F2F63D for ; Wed, 9 Nov 2011 22:18:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 27595-05 for ; Thu, 10 Nov 2011 02:18:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.161.174]) by mail.postgresql.org (Postfix) with ESMTP id 5FF60F2F63A for ; Wed, 9 Nov 2011 22:18:38 -0400 (AST) Received: by ggnb2 with SMTP id b2so2408394ggn.19 for ; Wed, 09 Nov 2011 18:18:38 -0800 (PST) Received: by 10.100.121.10 with SMTP id t10mr2314646anc.129.1320891518680; Wed, 09 Nov 2011 18:18:38 -0800 (PST) Received: from ?IPv6:2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f? (2001-44b8-6109-9f00-02a0-c9ff-fe6e-ed8f.static.ipv6.internode.on.net. [2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f]) by mx.google.com with ESMTPS id u14sm1603961anh.18.2011.11.09.18.18.33 (version=SSLv3 cipher=OTHER); Wed, 09 Nov 2011 18:18:35 -0800 (PST) Message-ID: <4EBB3443.2020709@ringerc.id.au> Date: Thu, 10 Nov 2011 10:17:39 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Robert Young CC: Bruce Momjian , Andres Freund , pgsql-bugs@postgresql.org Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost" References: <201111091648.pA9GmXK23629@momjian.us> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/65 X-Sequence-Number: 31660 On 10/11/11 02:24, Robert Young wrote: > Sure! It give the right information to workaround the problem. > But as I said: > On Fri, Oct 28, 2011 at 07:11, Robert Young wrote: >> 2.hard-coding is NOT configurable, that is the problem must be aided >> from OUTSIDE of the system to workaround. >> > And > On Tue, Nov 1, 2011 at 08:04, Robert Young wrote: >> Database should be functional without underlying hostname or DNS facility. Why? Should it also be functional without sockets? How about without a file system? Without an OS? PostgreSQL is an application running on an OS, and expects to be able to use the basic services of that OS. Those services include local DNS resolution of local host names. Every OS since Windows 3.1.1, Mac OS 7, and early BSD UNIXes has provided local DNS resolution and loopback sockets. Why should PostgreSQL accomodate the lack of them? If it should, where does it stop accomodating broken and cut-down OSes? If you want an embedded database for an extremely cut down OS, PostgreSQL isn't particularly suitable for a lot of reasons. For any other use case there's no reason to expect local DNS resolution to be broken. -- Craig Ringer