Re: pg_rewind and log messages

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pg_rewind and log messages
Дата
Msg-id CAHGQGwHAAKuBGa+VN_OW-z==_HwnJNPa_HtUs9yDSQL2DqzMoA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_rewind and log messages  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Wed, Apr 8, 2015 at 5:53 AM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> Heikki Linnakangas wrote:
>> On 04/07/2015 05:59 AM, Michael Paquier wrote:
>
>> >Fix inconsistent handling of logs in pg_rewind
>> >
>> >pg_rewind was handling a couple of things differently compared to the
>> >other src/bin utilities:
>> >- Logging output needs to be flushed on stderr, not stdout
>>
>> Agreed in general. But there's also precedent in printing some stuff to
>> stdout: pg_ctl does that for the status message, like "server starting". As
>> does initdb.
>>
>> I'm pretty unclear on what the rule here is.
>
> One principle that sometimes helps is to consider what happens if you
> use the command as part of a larger pipeline; progress messages can be
> read by some other command further down (and perhaps report them in a
> dialog box, if you embed the program in a GUI, say), but error messages
> should probably be processed differently; normally the pipeline would be
> aborted as a whole.

Make sense.

Regards,

-- 
Fujii Masao



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

Предыдущее
От: Qingqing Zhou
Дата:
Сообщение: Re: Tuple visibility within a single XID
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Tuple visibility within a single XID