Re: Query duration and query text

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query duration and query text
Дата
Msg-id 1272450.1606757315@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query duration and query text  (Yambu <hyambu@gmail.com>)
Ответы Re: Query duration and query text  (Yambu <hyambu@gmail.com>)
Список pgsql-admin
Yambu <hyambu@gmail.com> writes:
> May i know why the query and the duration are recorded as separate lines in
> postgres csv logs?

log_statement and log_duration are independent features.

> Is there a way I can make the query and the duration to be in the same line?

If you drop those and instead set log_min_duration_statement = 0 (or
some positive value) then the statement will be printed with the duration.

            regards, tom lane



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

Предыдущее
От: Yambu
Дата:
Сообщение: Query duration and query text
Следующее
От: Yambu
Дата:
Сообщение: Re: Query duration and query text