| От | Tom Lane |
|---|---|
| Тема | Re: Expensive log_line_prefix ? |
| Дата | |
| Msg-id | 1312.1349993880@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Expensive log_line_prefix ? (Sergey Konoplev <gray.ru@gmail.com>) |
| Ответы |
Re: Expensive log_line_prefix ?
|
| Список | pgsql-general |
Sergey Konoplev <gray.ru@gmail.com> writes:
> On Thu, Oct 11, 2012 at 12:19 PM, Sahagian, David
> <david.sahagian@emc.com> wrote:
>> Are there any "extra" costs to logging all this cool stuff ?
>>
>> log_line_prefix = '%m %a %u %p %c %m %v %x'
> The formatting cost only but it is so insignificant that does not
> worth bothering with it.
IIRC, %m would imply a gettimeofday call, which might be expensive
depending on your OS and hardware. I think all the other info is
"just sitting around", though.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера