Re: syslogger line-end processing infelicity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: syslogger line-end processing infelicity
Дата
Msg-id 24952.1180737010@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: syslogger line-end processing infelicity  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: syslogger line-end processing infelicity  (Andrew Dunstan <andrew@dunslane.net>)
Re: syslogger line-end processing infelicity  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> +1 on that.  The problem of ensuring atomic output remains though
>> (see nearby complaints from George Pavlov and others).

> Is that the one you suggested trying to fix by calling write() instead 
> of fprintf()? If so, I can't think of any good reason not to do that 
> anyway.

Probably not, but it doesn't fix the problem for long log lines (more
than PIPE_BUF bytes).

The other little problem (which is the reason we like the stderr
approach in the first place) is that not all the stderr output we want
to capture comes from code under our control.  This may not be a huge
problem in production situations, since the main issue in my experience
is being able to capture dynamic-linker messages when shlib loading fails.
But it is a stumbling block in the way of any proposals that involve
having a more structured protocol for the stuff going down the wire :-(
        regards, tom lane


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Command tags in create/drop scripts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BufFileWrite across MAX_PHYSICAL_FILESIZE boundary