Re: [HACKERS] psql: stdout or stderr?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] psql: stdout or stderr?
Дата
Msg-id 7018.915121213@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] psql: stdout or stderr?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] psql: stdout or stderr?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
>> Is that really what you want?  I would have thought errors would be sent
>> to stderr and that every thing else would go to stdout.

> Yes, this is new.  As I remember, some stuff is sent to stdout, and some
> to stderr, and there was some reason for that, though I can't remember
> what it was.  

I've always thought that psql is pretty inconsistent, arbitrary, and
unreasonable about what it chooses to write to stdout vs stderr.

However, if we rejigger what goes where, we will surely break a lot of
users' shell scripts, since those already expect particular output to go
to one or the other.  (We'd also break all the regression tests, but
at least those are within our power to fix.)

On the whole I'd vote against changing it --- a small improvement in
consistency is not worth the pain it will cause.
        regards, tom lane


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

Предыдущее
От: Andrey V Khavryutchenko
Дата:
Сообщение: Re: [HACKERS] problems recovering 6.1 db
Следующее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Date/time fixes for HAVE_TM_ZONE platforms