Re: syslog_line_prefix

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: syslog_line_prefix
Дата
Msg-id 13762.1254168423@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: syslog_line_prefix  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: syslog_line_prefix  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Alvaro Herrera wrote:
>> syslog uses a nonblocking file descriptor without a retry loop to
>> implement their logic.  I see no reason we couldn't do that ourselves.
>> Mixing it with regular blocking code could turn out to be nontrivial,
>> but I don't think it's impossible.

> Well, for CSV logs it's a complete non-starter. We go to quite a deal of 
> trouble to ensure we don't miss messages, because if we do the CSVs will 
> be hopelessly corrupted.

You could make it work if write() had all-or-nothing semantics, so that
you could write or discard a whole logical message at once.  But I don't
believe that's guaranteed for any interesting cases.
        regards, tom lane


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

Предыдущее
От: Stef Walter
Дата:
Сообщение: Re: pg_hba.conf: samehost and samenet [REVIEW]
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [PATCH] DefaultACLs