pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Robert Young <yayooo@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"
Date: Thu, 27 Oct 2011 16:13:20 +0300
Message-ID: <4EA958F0.8050402@enterprisedb.com> (raw)
In-Reply-To: <CAJjz_NgWTo_VEhk2os_S1cbXRojP1dZfYozMWSHuH_BU918SpQ@mail.gmail.com>
References: <CAJjz_Nhxdkr-0kx9F+VCTub1_kiXPyo5M-9v8Dn7N7y7PEPsXg@mail.gmail.com>
	<201110271412.02896.andres@anarazel.de>
	<CAJjz_NgWTo_VEhk2os_S1cbXRojP1dZfYozMWSHuH_BU918SpQ@mail.gmail.com>

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



view thread (47+ messages)  latest in thread

Message-ID: <4EA958F0.8050402@enterprisedb.com>
Permalink:  ../4EA958F0.8050402@enterprisedb.com/
Also on:    postgresql.org/message-id/4EA958F0.8050402@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: heikki.linnakangas@enterprisedb.com, yayooo@gmail.com, andres@anarazel.de
  Subject: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"
  In-Reply-To: <4EA958F0.8050402@enterprisedb.com>
  References: <CAJjz_Nhxdkr-0kx9F+VCTub1_kiXPyo5M-9v8Dn7N7y7PEPsXg@mail.gmail.com> <201110271412.02896.andres@anarazel.de> <CAJjz_NgWTo_VEhk2os_S1cbXRojP1dZfYozMWSHuH_BU918SpQ@mail.gmail.com> <4EA958F0.8050402@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox