Partitioning એક મોટા table ને એક સ્તંભના મૂલ્યના આધારે નાના ભૌતિક ટુકડાઓમાં (partitions) વિભાજિત કરે છે, જ્યારે તે એક તાર્કિક table રહે છે. PostgreSQL ની declarative partitioning (Postgres 10+) આને સ્વચ્છ બનાવે છે. તે ખૂબ મોટા tables માટે કર્મક્ષમતા અને સંચાલનક્ષમતા સુધારે છે.
Declarative partitioning (આધુનિક રીત)
orders (id , order_date , amount )
(order_date);
orders_2023 orders
() ();
orders_2024 orders
() ();
