Re: [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?
Дата
Msg-id CA+TgmobuTx+Ck9orX_Yen=Z764Zmsv7cSCVi6OMoMR7myoQLGA@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Sun, Sep 24, 2017 at 11:51 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> This looks like cargo-cult programming to me.  stderr is almost
> always line-buffered, making these fflush'es pointless.  If it's
> not line-buffered, that's probably because it's going to a
> noninteractive destination for which this wouldn't matter.
> Moreover, none of our other programs do this.

On a related note, the idea of removing pg_standby altogether has been
proposed a few times.  Apparently there are a few things that it still
does better than standby_mode, but nobody seems in a hurry to do
anything about that.  Still, I'd be against spending a lot of time
trying to improve a tool that has mostly outlived its usefulness - we
ought to be trying to enhance the in-core facilities instead.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] [BUGS] BUG #14825: enum type: unsafe use?
Следующее
От: Nathan Wagner
Дата:
Сообщение: Re: [HACKERS] Fix number skipping in to_number