pgsql: Refactor code creating PartitionBoundInfo

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor code creating PartitionBoundInfo
Date: 2018-11-14 01:03:36
Message-ID: E1gMjai-0006Y8-NF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b52b7dc250bba74fbaed685af4a37b450a0e2726

Modified Files
--------------
src/backend/partitioning/partbounds.c | 627 +++++++++++++++++++++++++++++++++-
src/backend/utils/cache/partcache.c | 539 ++---------------------------
src/include/partitioning/partbounds.h | 44 +--
3 files changed, 661 insertions(+), 549 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-11-14 01:33:57 pgsql: Add flag values in WAL description to all heap records
Previous Message Alvaro Herrera 2018-11-13 21:16:04 pgsql: Add INSERT ON CONFLICT test on partitioned tables with transitio