Re: Query duration and query text

Поиск
Список
Период
Сортировка
От Yambu
Тема Re: Query duration and query text
Дата
Msg-id CALhHtcBJWFubydvXUBU2_6uq72pfYFF5RV4aYQ6O=8iC9S-_4w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query duration and query text  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin

Thanks it works

On 30 Nov 2020 7:28 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query duration and query text
Следующее
От: Walters Che Ndoh
Дата:
Сообщение: killing idle_connections