Re: Need guidance on partioning - Mailing list pgsql-admin

From Rui DeSousa
Subject Re: Need guidance on partioning
Date
Msg-id 2D0CA9B0-A74F-40E3-87EA-89752BBFC347@icloud.com
Whole thread Raw
In response to Re: Need guidance on partioning  (M Sarwar <sarwarmd02@outlook.com>)
List pgsql-admin


On May 22, 2024, at 2:40 PM, M Sarwar <sarwarmd02@outlook.com> wrote:

No-one has started complaining about anything so far. I will not be surprising if someone start crying all of sudden.
My management has highly underestimates the database tasks. I am just listening to them with their priority order. Otherwise, my job will be at risk 🙂

Hi Sarwar,

What you’ll find is that for OLTP systems table sizes doesn’t really matter as access patterns should be well structured and serviced by indexes, etc.   The only reason to have partitioning in an OLTP system is for table maintenance; like aging out old data for regulatory reasons, etc.  

Partitioning is most beneficial in OLAP and reporting type systems where queries can make use of partition elimination.  When thinking about partitioning I also consider the use of Brin indexes as they can sometime achieve similar or even better results.  Also, when considering partitioning especially in a hybrid system one should also think about how it will impact referential integrity.

pgsql-admin by date:

Previous
From: Rui DeSousa
Date:
Subject: Re: AFTER INSERT trigger INSERT into another table-B are ignoring Table-B constraints
Next
From: Harish Harish
Date:
Subject: Upgrade from PostgreSQL version 10 to 16