Re: Performance Issue with Hash Partition Query Execution in PostgreSQL 16 - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Performance Issue with Hash Partition Query Execution in PostgreSQL 16
Date
Msg-id c9087811007d427467ec3725180cccd153f65bd7.camel@cybertec.at
Whole thread Raw
List pgsql-general
On Wed, 2024-11-06 at 22:43 +0530, Ramakrishna m wrote:
> One of the queries, which retrieves a single record from a table with 16 hash partitions,
> is taking more than 10 seconds to execute. In contrast, when we run the same query manually,
> it completes within milliseconds.

If I read your file right, the slow execution has an additional "LIMIT 55".
That can make a difference.

In general, you can use auto_explain to get the execution plan of the slow query.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Dominique Devienne
Date:
Subject: About the stability of COPY BINARY data
Next
From: Craig McIlwee
Date:
Subject: Trouble using pg_rewind to undo standby promotion