| От | Tom Lane |
|---|---|
| Тема | Re: How to log 'user time' in postgres logs |
| Дата | |
| Msg-id | 9124.1567002531@sss.pgh.pa.us обсуждение |
| Ответ на | Re: How to log 'user time' in postgres logs (Adrian Klaver <adrian.klaver@aklaver.com>) |
| Список | pgsql-general |
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 8/28/19 5:36 AM, francis picabia wrote:
>> I had no clue the database was the issue because I
>> had the minimal
>> log_duration = on
>> log_line_prefix = '<%t>'
>> With those settings all queries seen were roughly 1ms
>>
>> I need this log to show the true time it takes to get a result back.
> I'm having a hard time believing autovacuum was involved in this, given
> you say the queries took only 1ms on average.
Also: the time logged by log_duration IS the time it took, so far as the
server can tell.
Perhaps there's monstrous network delays involved, but what I'm suspicious
of is inefficient client-side processing.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера