Re: Adding a --quiet option to initdb

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Adding a --quiet option to initdb
Дата
Msg-id 20060127154934.GC18334@surnet.cl
обсуждение исходный текст
Ответ на Re: Adding a --quiet option to initdb  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: Adding a --quiet option to initdb  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Thomas Hallgren wrote:
> Tom Lane wrote:
> >
> >>I get a "WARNING: enabling "trust" authentication for local connections". 
> >>Now this information *is* important. Unfortunately it's mixed in with 
> >>all the rest unless I use a special redirect of stdout.

> >While we can probably all agree that it's not very interesting to
> >mention every single directory that initdb creates, I find it fairly
> >hard to buy an argument that some of the non-progress messages are
> >important and the others are not.  Every one of them got put in
> >because someone thought it important.
>
> I agree. The above warning is not an indication that something is wrong 
> and it should be removed too.

This warning was added because of security considerations AFAIR.  If the
intent is to make initdb super-quiet, we still have to have security in
mind.  So if you want it to not say anything by default, instead of
throwing a warning it should throw an error and refuse to continue;
unless a default password is specified or a --silently-enable-trust-auth
switch is passed, in either of which cases it can silently continue.

-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J
"I can't go to a restaurant and order food because I keep looking at the
fonts on the menu.  Five minutes later I realize that it's also talking
about food" (Donald Knuth)


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

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: Adding a --quiet option to initdb
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: stats for failed transactions (was Re: [GENERAL] VACUUM Question)