Re: The performance issues caused by upgrading PostgreSQL to version 16.3. - Mailing list pgsql-general

From Doron Tsur
Subject Re: The performance issues caused by upgrading PostgreSQL to version 16.3.
Date
Msg-id CAPZZA0rj2zU=K6yS=F9apn62P_Wj4ov1gh4KLvBL-E6of5b0bg@mail.gmail.com
Whole thread Raw
In response to Re: The performance issues caused by upgrading PostgreSQL to version 16.3.  (Greg Sabino Mullane <htamfids@gmail.com>)
List pgsql-general
post installing, did you run analyze verbose? 

-Doron 


On Mon, Feb 17, 2025 at 4:23 PM Greg Sabino Mullane <htamfids@gmail.com> wrote:
On Mon, Feb 17, 2025 at 2:55 AM 馬 騰飛 <ma-tengfei@nec.cn> wrote:
Interestingly, when we isolate the problematic SQL statement and replace its parameters with actual values, it executes in just a few seconds in pgAdmin.
However, when we run the same SQL query through our application using Npgsql, it takes over ten minutes to complete.

Another reason could be a poor type casting by your driver/middleware. Can you share the query that is problematic? (also, since you mentioned a version upgrade, also make sure you run ANALYZE; post-upgrade.)

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support



--
---
Sent with Gmail for Sidekick Browser

pgsql-general by date:

Previous
From: Rucha Kulkarni
Date:
Subject: Doubts regarding pg_freespacemap extension
Next
From: Adrian Klaver
Date:
Subject: Re: The performance issues caused by upgrading PostgreSQL to version 16.3.