mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Add hash partitioning.
Hash partitioning is useful when you want to partition a growing data set evenly. This can be useful to keep table sizes reasonable, which makes maintenance operations such as VACUUM faster, or to enable partition-wise join. At present, we still depend on constraint exclusion for partitioning pruning, and the shape of the partition constraints for hash partitioning is such that that doesn't work. Work is underway to fix that, which should both improve performance and make partitioning pruning work with hash partitioning. Amul Sul, reviewed and tested by Dilip Kumar, Ashutosh Bapat, Yugo Nagata, Rajkumar Raghuwanshi, Jesper Pedersen, and by me. A few final tweaks also by me. Discussion: http://postgr.es/m/CAAJ_b96fhpJAP=ALbETmeLk1Uni_GFZD938zgenhF49qgDTjaQ@mail.gmail.com
This commit is contained in:
@ -3578,6 +3578,8 @@ _outPartitionBoundSpec(StringInfo str, const PartitionBoundSpec *node)
|
||||
|
||||
WRITE_CHAR_FIELD(strategy);
|
||||
WRITE_BOOL_FIELD(is_default);
|
||||
WRITE_INT_FIELD(modulus);
|
||||
WRITE_INT_FIELD(remainder);
|
||||
WRITE_NODE_FIELD(listdatums);
|
||||
WRITE_NODE_FIELD(lowerdatums);
|
||||
WRITE_NODE_FIELD(upperdatums);
|
||||
|
Reference in New Issue
Block a user