On Fri, 2026-10-16 at 23:09 +0530, Brajendra Pratap Singh wrote:
> We need to monitor a function which is running since long to understand at which
> step it is currently running and taking long time to debug the function.
I usually use auto_explain for that, with auto_explain.log_nested_statements set
to "on" and a sufficiently low auto_explain.log_min_duration.
Yours,
Laurenz Albe