Refactor code creating PartitionBoundInfo
Michael Paquier <michael@paquier.xyz>
Refactor code creating PartitionBoundInfo The code building PartitionBoundInfo based on the constituent partition data read from catalogs has been located in partcache.c, with a specific set of routines dedicated to bound types, like sorting or bound data creation. All this logic is moved to partbounds.c and relocates all the bound-specific logistic into it, with partition_bounds_create() as principal entry point. Author: Amit Langote Reviewed-by: Michael Paquier, Álvaro Herrera Discussion: https://postgr.es/m/3f289da8-6d10-75fe-814a-635e8b191d43@lab.ntt.co.jp
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/partitioning/partbounds.c | modified | +623 −4 |
| src/backend/utils/cache/partcache.c | modified | +35 −504 |
| src/include/partitioning/partbounds.h | modified | +3 −41 |
Discussion
- move PartitionBoundInfo creation code 22 messages · 2018-11-01 → 2018-11-14