summaryrefslogtreecommitdiff
path: root/src/include/partitioning/partprune.h
diff options
context:
space:
mode:
authorAlvaro Herrera2018-04-15 00:12:14 +0000
committerAlvaro Herrera2018-04-15 00:12:14 +0000
commitda6f3e45ddb68ab3161076e120e7c32cfd46d1db (patch)
treece5b30869c67d8be6a86fd6f8f0ba95b5ed61e73 /src/include/partitioning/partprune.h
parentb39fd897e0398a6bdc6552daa7cacdf9c0e46d7e (diff)
Reorganize partitioning code
There's been a massive addition of partitioning code in PostgreSQL 11, with little oversight on its placement, resulting in a catalog/partition.c with poorly defined boundaries and responsibilities. This commit tries to set a couple of distinct modules to separate things a little bit. There are no code changes here, only code movement. There are three new files: src/backend/utils/cache/partcache.c src/include/partitioning/partdefs.h src/include/utils/partcache.h The previous arrangement of #including catalog/partition.h almost everywhere is no more. Authors: Amit Langote and Álvaro Herrera Discussion: https://postgr.es/m/[email protected] https://postgr.es/m/[email protected] https://postgr.es/m/[email protected] https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/partitioning/partprune.h')
-rw-r--r--src/include/partitioning/partprune.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/partitioning/partprune.h b/src/include/partitioning/partprune.h
index 2ae2fd16ede..a5568abce65 100644
--- a/src/include/partitioning/partprune.h
+++ b/src/include/partitioning/partprune.h
@@ -14,9 +14,10 @@
#ifndef PARTPRUNE_H
#define PARTPRUNE_H
-#include "catalog/partition.h"
+#include "nodes/execnodes.h"
#include "nodes/relation.h"
+
/*
* PartitionPruneContext
*