Re: Debugging query performance in postgres

2025-09-04 Thread Adrian Klaver
On 9/4/25 13:32, veem v wrote: On Thu, 4 Sept 2025 at 23:19, Adrian Klaver We didn't get the exact root cause why the plan flipped but we have to add additional filters to get rid of the performance issue. Did you do an EXPLAIN ANALYZE before and after the changes? If so did you save the

Re: Debugging query performance in postgres

2025-09-04 Thread Ron Johnson
On Thu, Sep 4, 2025 at 12:58 PM veem v wrote: > 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. > That sounds like something that bit me once. Took a while to figure out, and was v

Re: Debugging query performance in postgres

2025-09-04 Thread veem v
On Thu, 4 Sept 2025 at 23:19, Adrian Klaver wrote: > On 9/4/25 09:57, veem v wrote: > > 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 iden

Re: Debugging query performance in postgres

2025-09-04 Thread Adrian Klaver
On 9/4/25 09:57, veem v wrote: 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, What was t

Debugging query performance in postgres

2025-09-04 Thread veem v
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 a