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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?
Дата
Msg-id 7232.1506268285@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [HACKERS] What's with all the fflush(stderr) calls in pg_standby.c?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
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.
        regards, tom lane


-- 
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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Built-in plugin for logical decoding output
Следующее
От: Pavel Stehule
Дата:
Сообщение: [HACKERS] logical replication and statistics