Home  Postgress   Partitionin ...

Partitioning types in PostgreSQL

PostgreSQL supports three main types of declarative partitioning: Range, List, and Hash partitioning.


1. Range Partitioning

Range partitioning divides a table into partitions based on a range of values from a partitioning column (or set of columns).

2. List Partitioning

List partitioning divides a table based on explicit, discrete values from a partitioning column.

3. Hash Partitioning

Hash partitioning distributes rows across a specified number of partitions by applying a hash function to the partitioning column's value.

Composite Partitioning

You can also create Composite Partitioning (or sub-partitioning) by defining a partition itself as a partitioned table, combining two or more of the methods for a multi-level scheme (e.g., Range by date, then List by region within each date partition).

Published on: Oct 07, 2025, 06:51 AM  
 

Comments

Add your comment