> Is there any way to track those historical executions and be able to find the exact root cause of the slow executions confidently?
https://www.postgresql.org/docs/current/auto-explain.html
auto_explain.log_min_duration = '5s' ## or large enough to capture your quickest one
https://www.postgresql.org/docs/current/auto-explain.html
auto_explain.log_min_duration = '5s' ## or large enough to capture your quickest one
Do NOT enable auto_explain.log_analyze.
Cheers,
Greg