Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"
Дата
Msg-id 4EA958F0.8050402@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"  (Robert Young <yayooo@gmail.com>)
Ответы Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"  (Robert Young <yayooo@gmail.com>)
Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Young
Дата:
Сообщение: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"
Следующее
От: Robert Young
Дата:
Сообщение: Re: Add statistics_collector_listen_addresses to fix hard-coding of "localhost"