by tda · 9y ago · 0 comments
Will hash based partitioning be included in PostgreSQL 10? The post notes
A partitioning "column" can be an expression.
so I can assume it will be supported?So I figured partitioning the table by foreign key would group all data together in a way that allows for faster access (typical access pattern would be select * where foreign_key = x). However, as the number of keys in the foreign table is unbounded and can be quite large, I wanted to partition the data to a limited number of tables, with
mod(foreign_key, number_of_partions)
If I understood correctly, check constraints can't operate on a calculated value