From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move code for managing PartitionDescs into a new file, partdesc.
Date: Thu, 21 Feb 2019 17:08:36 +0000
Message-ID: <E1gwrps-0007dA-83@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: Move code for managing PartitionDescs into a new file, partdesc.
In-Reply-To: <E1gwrps-0007dA-83@gemulon.postgresql.org>
References: <E1gwrps-0007dA-83@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox