Re: Question on PostgreSQL Table Partitioning – Performance of Queries That Do Not Use the Partition Key

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: atma ram <atmaramkp(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Question on PostgreSQL Table Partitioning – Performance of Queries That Do Not Use the Partition Key
Date: 2025-11-27 07:03:20
Message-ID: 4e16b590dac1584124881696ed51046eb5eaa8fc.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jacqui Caren 2025-11-28 10:19:43 Re: Selecting all variations of job title in a list
Previous Message Laurenz Albe 2025-11-27 06:56:46 Re: set role command