Re: Long running queries
От | Bruce Momjian |
---|---|
Тема | Re: Long running queries |
Дата | |
Msg-id | Y9HFvR145+1+MeOm@momjian.us обсуждение исходный текст |
Ответ на | Re: Long running queries (Scott Ribe <scott_ribe@elevated-dev.com>) |
Ответы |
Re: Long running queries
|
Список | pgsql-admin |
On Wed, Jan 25, 2023 at 10:57:58AM -0700, Scott Ribe wrote: > > On Jan 25, 2023, at 10:55 AM, Clive Swan <cliveswan@gmail.com> wrote: > > > > SQL Server has a handy SQL "tool" to spot expensive and/or long running queries. > > > > Is there a similar query/tool for Postgresql?? > > - pg_stat_statements extension > - log_min_duration config parameter FYI, log_min_duration_statement will not print the duration until the query completes, so it is good for analysis later. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EDB https://enterprisedb.com Embrace your flaws. They make you human, rather than perfect, which you will never be.
В списке pgsql-admin по дате отправления: