Re: Partitioning a table by integer value (preferably in place) - Mailing list pgsql-general

From Vijaykumar Jain
Subject Re: Partitioning a table by integer value (preferably in place)
Date
Msg-id CAM+6J952E=ixAs6WrtQKti_JWyq==S9=R6ckQXNm1AYgSg2KRQ@mail.gmail.com
Whole thread Raw
In response to Re: Partitioning a table by integer value (preferably in place)  (Pól Ua Laoínecháin <linehanp@tcd.ie>)
Responses Re: Partitioning a table by integer value (preferably in place)  (Michael Lewis <mlewis@entrata.com>)
List pgsql-general


On Fri, 13 Aug 2021 at 14:13, Pól Ua Laoínecháin <linehanp@tcd.ie> wrote:
Thanks again for your questions - they gave me pause for thought and I
will try to apply them in future partitioning scenarios. (Unfortunatly
:-) ) there is no magic number of partitions for, say, a given size of
table - otherwise it would be the default and would be done
automatically!

no worries, it seems you have  a fair idea how things would grow. so partitioning would be of help.
My biggest worry around partitioning is around moving data around partitions/ rebalancing partitions.
It requires making use of triggers, syncing data and then attach/remove partitions if it is simple as 
list/range and use binary split for large partitions, to avoid large row movements.

But when it comes to hash, it requires rebuilding the entire setup either via triggers if there is significant space on the db,  
or logically replicating to another server
with a new hash scheme. because i do not have lot of exp around sharding/partitioning, 
nor about how others dbs on how they claim automatic movements of data between 
partitions, I think i wore myself out due to poor design.    
 
--
Thanks,
Vijay
Mumbai, India

pgsql-general by date:

Previous
From: Pól Ua Laoínecháin
Date:
Subject: Re: Partitioning a table by integer value (preferably in place)
Next
From: Laura Smith
Date:
Subject: Re: Multi-master replication