Re: Postgres: Queries are too slow after upgrading to PG17 from PG15

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sajith Prabhakar Shetty <ssajith(at)blackduck(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgres: Queries are too slow after upgrading to PG17 from PG15
Date: 2025-05-15 15:46:31
Message-ID: 11970.1747323991@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Sajith Prabhakar Shetty <ssajith(at)blackduck(dot)com> writes:
> Now surprisingly one of the query i took from application which used to execute in 2s in PG15, is now taking 1min+ in PG17.

The data you've actually showed us does not back up that complaint.
But I do see a 2x slowdown.

> Explain plan of the two queries almost same, all the joins and paths used are exactly same.

Yeah, that is odd. The only simple explanation I can think of is that you
are using a debug build of v17.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sajith Prabhakar Shetty 2025-05-15 16:21:10 Re: Postgres: Queries are too slow after upgrading to PG17 from PG15
Previous Message Tom Lane 2025-05-15 15:28:44 Re: BUG #18933: PostgreSQL fails to handle JOIN operation involving Empty Table