]> granicus.if.org Git - postgresql/commit
Refactor code creating PartitionBoundInfo
authorMichael Paquier <michael@paquier.xyz>
Wed, 14 Nov 2018 01:01:49 +0000 (10:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 14 Nov 2018 01:01:49 +0000 (10:01 +0900)
commitb52b7dc250bba74fbaed685af4a37b450a0e2726
treea420319911c121600e622cbd75b429dfa2a5321c
parent9079fe60b2142da6e89403b9a9504e75124c085d
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
src/backend/partitioning/partbounds.c
src/backend/utils/cache/partcache.c
src/include/partitioning/partbounds.h