Re: Finding execution plan - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Finding execution plan
Date
Msg-id 42ac2198-ecb3-4a7e-a40d-d5f231c99e10@aklaver.com
Whole thread Raw
In response to Finding execution plan  (shashidhar Reddy <shashidharreddy001@gmail.com>)
Responses Re: Finding execution plan
Re: Finding execution plan
List pgsql-general


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."

pgsql-general by date:

Previous
From: shashidhar Reddy
Date:
Subject: Finding execution plan
Next
From: Adrian Klaver
Date:
Subject: Re: Finding execution plan