Move code for managing PartitionDescs into a new file, partdesc.c
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +1 −0 |
| src/backend/catalog/partition.c | modified | +0 −16 |
| src/backend/catalog/pg_constraint.c | modified | +0 −1 |
| src/backend/commands/indexcmds.c | modified | +1 −1 |
| src/backend/commands/tablecmds.c | modified | +1 −0 |
| src/backend/commands/trigger.c | modified | +1 −0 |
| src/backend/executor/execPartition.c | modified | +1 −0 |
| src/backend/optimizer/util/inherit.c | modified | +1 −0 |
| src/backend/optimizer/util/plancat.c | modified | +1 −1 |
| src/backend/partitioning/Makefile | modified | +1 −1 |
| src/backend/partitioning/partbounds.c | modified | +4 −2 |
| src/backend/partitioning/partdesc.c | added | +221 −0 |
| src/backend/utils/cache/partcache.c | modified | +0 −124 |
| src/backend/utils/cache/relcache.c | modified | +1 −56 |
| src/include/catalog/partition.h | modified | +0 −15 |
| src/include/partitioning/partdesc.h | added | +39 −0 |
| src/include/utils/partcache.h | modified | +0 −1 |
Discussion
- ATTACH/DETACH PARTITION CONCURRENTLY 95 messages · 2018-08-02 → 2019-03-14