Re: Full statement logging problematic on larger machines?
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Full statement logging problematic on larger machines? |
| Дата | |
| Msg-id | 29255.1236822351@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Full statement logging problematic on larger machines? (Guillaume Smet <guillaume.smet@gmail.com>) |
| Ответы |
Re: Full statement logging problematic on larger machines?
|
| Список | pgsql-performance |
Guillaume Smet <guillaume.smet@gmail.com> writes:
> I don't know if the logging integrated into PostgreSQL can bufferize
> its output. Andrew?
It uses fwrite(), and normally sets its output into line-buffered mode.
For a high-throughput case like this it seems like using fully buffered
mode might be an acceptable tradeoff. You could try changing _IOLBF
to _IOFBF near the head of postmaster/syslogger.c and see if that helps.
(If it does, we could think about exposing some way of tuning this
without modifying the code, but for now you'll have to do that.)
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера