pgsql: Move code for managing PartitionDescs into a new file, partdesc.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move code for managing PartitionDescs into a new file, partdesc.
Date: 2019-02-21 17:08:36
Message-ID: E1gwrps-0007dA-83@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move code for managing PartitionDescs into a new file, partdesc.c

This is similar in spirit to the existing partbounds.c file in the
same directory, except that there's a lot less code in the new file
created by this commit. Pending work in this area proposes to add a
bunch more code related to PartitionDescs, though, and this will give
us a good place to put it.

Discussion: http://postgr.es/m/CA+TgmoZUwPf_uanjF==gTGBMJrn8uCq52XYvAEorNkLrUdoawg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1bb5e78218107db543086e71fc162d36a955b08e

Modified Files
--------------
src/backend/catalog/heap.c | 1 +
src/backend/catalog/partition.c | 16 ---
src/backend/catalog/pg_constraint.c | 1 -
src/backend/commands/indexcmds.c | 2 +-
src/backend/commands/tablecmds.c | 1 +
src/backend/commands/trigger.c | 1 +
src/backend/executor/execPartition.c | 1 +
src/backend/optimizer/util/inherit.c | 1 +
src/backend/optimizer/util/plancat.c | 2 +-
src/backend/partitioning/Makefile | 2 +-
src/backend/partitioning/partbounds.c | 6 +-
src/backend/partitioning/partdesc.c | 221 ++++++++++++++++++++++++++++++++++
src/backend/utils/cache/partcache.c | 124 -------------------
src/backend/utils/cache/relcache.c | 57 +--------
src/include/catalog/partition.h | 15 ---
src/include/partitioning/partdesc.h | 39 ++++++
src/include/utils/partcache.h | 1 -
17 files changed, 273 insertions(+), 218 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-02-21 18:01:11 pgsql: pg_regress: Don't use absolute paths for the diff
Previous Message Robert Haas 2019-02-21 16:33:15 pgsql: Delay lock acquisition for partitions until we route a tuple to