Re: Question on PostgreSQL Table Partitioning – Performance of Queries That Do Not Use the Partition Key - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Question on PostgreSQL Table Partitioning – Performance of Queries That Do Not Use the Partition Key
Date
Msg-id 4e16b590dac1584124881696ed51046eb5eaa8fc.camel@cybertec.at
Whole thread Raw
In response to Re: Question on PostgreSQL Table Partitioning – Performance of Queries That Do Not Use the Partition Key  (atma ram <atmaramkp@gmail.com>)
List pgsql-general
On Wed, 2025-11-26 at 21:59 +0530, atma ram wrote:
> The table size is 1.6TB and not GB. My bad.
>
> The queries using primary key or partition key will be definitely improved.

That's not what I would expect, but if you tested it, ok.

> My question is 20 queries that do not use partition key and use only index.
> Since this is a critical OLTP system, even if there is a slight chance that
> those 20 queries will degrade performance, then we may not go with partition
> and find any alternative ways. Hence the question. 

I am pretty sure that the performance will be (at least slightly) worse.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: set role command
Next
From: Jacqui Caren
Date:
Subject: Re: Selecting all variations of job title in a list