Debugging query performance in postgres

From: veem v <veema0000(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Debugging query performance in postgres
Date: 2025-09-04 16:57:39
Message-ID: CAB+=1TWW+iPTtH-P+-b8CdS0fPvt2+8B7OQ5gS9ostuoPvMJqg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
We have a situation in which we had a dml query within a procedure that was
running fine but suddenly the plan flipped and it started running longer.
It took us a good amount of time to identify the cause and fix it. So I
have below questions,
1)Do we have any data dictionary view or query available which gives us
information on what were the queryids those are executing from within a
procedure and how much time they are taking?
2)Also how to identify , if any specific queries has opted a different plan
today as compared to past executions and also response time increased
because of that?

Regards
Veem

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2025-09-04 16:59:43 Re: In-order pg_dump (or in-order COPY TO)
Previous Message Dimitrios Apostolou 2025-09-04 16:08:12 Re: In-order pg_dump (or in-order COPY TO)