aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-05-09 10:40:21 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-05-09 10:40:25 -0300
commitd1e2cac5ff7eaf3e9feac419205b3e08052be961 (patch)
tree66b756ca0371b92b77c3b2ee22df005037f64179 /src
parentc775fb9e18ace94e61d5d9587b5667f7baaca459 (diff)
downloadpostgresql-d1e2cac5ff7eaf3e9feac419205b3e08052be961.tar.gz
postgresql-d1e2cac5ff7eaf3e9feac419205b3e08052be961.zip
Make gen_partprune_steps static
There's no need to export this function, so don't. Michaël didn't actually write the patch, but we list him as first author because with a trivial one like this, intellectual authorship is as important (if not more) as bit shovelling. Author: Michaël Paquier, Amit Langote Discussion: https://postgr.es/m/c91299c4-199b-0f16-339b-a29d6d2a39ee@lab.ntt.co.jp
Diffstat (limited to 'src')
-rw-r--r--src/backend/partitioning/partprune.c4
-rw-r--r--src/include/partitioning/partprune.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/partitioning/partprune.c b/src/backend/partitioning/partprune.c
index eae690e2ca3..69879bf3a45 100644
--- a/src/backend/partitioning/partprune.c
+++ b/src/backend/partitioning/partprune.c
@@ -116,6 +116,8 @@ typedef struct PruneStepResult
} PruneStepResult;
+static List *gen_partprune_steps(RelOptInfo *rel, List *clauses,
+ bool *contradictory);
static List *gen_partprune_steps_internal(GeneratePruningStepsContext *context,
RelOptInfo *rel, List *clauses,
bool *contradictory);
@@ -355,7 +357,7 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
* If the clauses in the input list are contradictory or there is a
* pseudo-constant "false", *contradictory is set to true upon return.
*/
-List *
+static List *
gen_partprune_steps(RelOptInfo *rel, List *clauses, bool *contradictory)
{
GeneratePruningStepsContext context;
diff --git a/src/include/partitioning/partprune.h b/src/include/partitioning/partprune.h
index c9fe95dc30c..3d114b4c71f 100644
--- a/src/include/partitioning/partprune.h
+++ b/src/include/partitioning/partprune.h
@@ -67,7 +67,5 @@ extern List *make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
extern Relids prune_append_rel_partitions(RelOptInfo *rel);
extern Bitmapset *get_matching_partitions(PartitionPruneContext *context,
List *pruning_steps);
-extern List *gen_partprune_steps(RelOptInfo *rel, List *clauses,
- bool *contradictory);
#endif /* PARTPRUNE_H */