Re: Finding execution plan

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Finding execution plan
Дата
Msg-id ZUUz3D7luiCxeqij@momjian.us
обсуждение исходный текст
Ответ на Re: Finding execution plan  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Finding execution plan
Re: Finding execution plan
Список pgsql-general
On Fri, Nov  3, 2023 at 10:44:12AM -0700, Adrian Klaver wrote:
> 
> On 11/3/23 10:40 AM, shashidhar Reddy wrote:
> 
>     Hello All,
> 
>     I have a Postgresql function scheduled to run on the database, some tines
>     it is taking too long than usual time, is it possible to get the execution
>     plan of this function or any other way to troubleshoot
> 
> 
> You might to take a look at the contrib module:
> 
> 
> https://www.postgresql.org/docs/current/pgstatstatements.html
> 
> 
> "The pg_stat_statements module provides a means for tracking planning and
> execution statistics of all SQL statements executed by a server."

Since he asked about execution plans, I was thinking auto_explain:

    https://www.postgresql.org/docs/current/auto-explain.html

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Finding execution plan
Следующее
От: shashidhar Reddy
Дата:
Сообщение: Re: Finding execution plan