Re: Is it possible to log long running recursive/internal postgresql queries?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Is it possible to log long running recursive/internal postgresql queries?
Дата
Msg-id 563e0f91d547c52d7cd2b0d2767290818836f615.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Is it possible to log long running recursive/internal postgresql queries?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is it possible to log long running recursive/internal postgresql queries?  (Hotmail <crajac66@hotmail.com>)
Список pgsql-admin
On Fri, 2023-02-17 at 13:28 -0500, Tom Lane wrote:
> Hotmail <crajac66@hotmail.com> writes:
> > If it is possible to log long running internal queries as outlined above any guidance would be appreciated.
>
> Either auto_explain or pg_stat_statements could have helped you
> with that, I think.  I believe (without having tested) that if
> configured to track nested statements they would perceive the
> FK enforcement query as a separate statement to track.

Yes, they do.
You need to set "auto_explain.log_nested_statements = on" or
"pg_stat_statements.track = all".

Yours,
Laurenz Albe



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

Предыдущее
От: obi reddy
Дата:
Сообщение: Re: Vacuum and analyze for objects on physical stand by dbs
Следующее
От: Hotmail
Дата:
Сообщение: Re: Is it possible to log long running recursive/internal postgresql queries?