Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8E8B0B5DBC1 for ; Thu, 27 Oct 2011 10:13:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 27998-10 for ; Thu, 27 Oct 2011 13:13:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mail.postgresql.org (Postfix) with ESMTP id 9906CB5DBF0 for ; Thu, 27 Oct 2011 10:13:25 -0300 (ADT) Received: from mail-fx0-f48.google.com ([209.85.161.48]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP; Thu, 27 Oct 2011 06:13:26 PDT Received: by mail-fx0-f48.google.com with SMTP id p14so3992054faa.21 for ; Thu, 27 Oct 2011 06:13:24 -0700 (PDT) Received: by 10.223.1.137 with SMTP id 9mr17572392faf.19.1319721204647; Thu, 27 Oct 2011 06:13:24 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id y17sm11077162faf.1.2011.10.27.06.13.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Oct 2011 06:13:21 -0700 (PDT) Message-ID: <4EA958F0.8050402@enterprisedb.com> Date: Thu, 27 Oct 2011 16:13:20 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Robert Young CC: Andres Freund , pgsql-bugs@postgresql.org Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost" References: <201110271412.02896.andres@anarazel.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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: 201110/259 X-Sequence-Number: 31529 On 27.10.2011 15:57, Robert Young wrote: > But,I think insistence of hard-coding should be even worse than broken > configuration. > And hard-coding should never be a good work ethics of a professional programmer. You're exaggerating. There's nothing wrong hard-coding things like number of seconds in a minute (60). While it's not as cast in stone as 60 seconds in a minute, I don't see anything wrong with hardcoding that "localhost" means the local host. BTW, do we have anything in place to stop any user on the same host to send bogus stat messages to the stats collector? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com