Re: syslog performance when logging big statements

Поиск
Список
Период
Сортировка
От Jeff
Тема Re: syslog performance when logging big statements
Дата
Msg-id 194C32C6-C8A8-4AAA-8A15-F9E9F1855E09@torgo.978.org
обсуждение исходный текст
Ответ на syslog performance when logging big statements  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Ответы Re: syslog performance when logging big statements
Список pgsql-performance
On Jul 8, 2008, at 8:24 AM, Achilleas Mantzios wrote:

> File sizes of about 3M result in actual logging output of ~ 10Mb.
> In this case, the INSERT *needs* 20 minutes to return. This is
> because the logging through syslog seems to severely slow the system.
> If instead, i use stderr, even with logging_collector=on, the same
> statement needs 15 seconds to return.
>

In syslog.conf is the destination for PG marked with a "-"? (ie -/var/
log/pg.log) which tells syslog to not sync after each line logged.
That could explain a large chunk of the difference in time.

--
Jeff Trout <jeff@jefftrout.com>
http://www.stuarthamm.net/
http://www.dellsmartexitin.com/




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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: max fsm pages question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: syslog performance when logging big statements