Partitioning ले एक ठूलो टेबललाई एक column को मानको आधारमा सानो भौतिक टुक्राहरूमा (partitions) विभाजन गर्छ, जबकि यो एक तार्किक टेबल रहन्छ। PostgreSQL को declarative partitioning (Postgres 10+) यसलाई सफा बनाउँछ। यो धेरै ठूलो टेबलहरूको लागि प्रदर्शन र व्यवस्थापनलाई सुधार गर्छ।
Declarative partitioning (आधुनिक तरिका)
orders (id , order_date , amount )
(order_date);
orders_2023 orders
() ();
orders_2024 orders
() ();
