How to log 'user time' in postgres logs

Поиск
Список
Период
Сортировка
От francis picabia
Тема How to log 'user time' in postgres logs
Дата
Msg-id CA+AKB6Gwbfjc3LgMDYTRRfgeWC_m=q8Gstw8=oX6bSOX3TeDaQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to log 'user time' in postgres logs  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general

Recently had a problem where autovacuum was accidentally left off
and the database took 6 seconds for every task from PHP.
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.

In the Linux world we have the time command which shows the user
time reflecting all overhead added up.  I'd like postgres to show
times like that and then if there are problems I can look further,
change logging details, etc..

I checked docs, googled,  and didn't see anything obvious.


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

Предыдущее
От: Uwe Seher
Дата:
Сообщение: Re: Work hours?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: