Skip to content

Commit d1e2cac

Browse files
committed
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/[email protected]
1 parent c775fb9 commit d1e2cac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/partitioning/partprune.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ typedef struct PruneStepResult
116116
} PruneStepResult;
117117

118118

119+
static List *gen_partprune_steps(RelOptInfo *rel, List *clauses,
120+
bool *contradictory);
119121
static List *gen_partprune_steps_internal(GeneratePruningStepsContext *context,
120122
RelOptInfo *rel, List *clauses,
121123
bool *contradictory);
@@ -355,7 +357,7 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
355357
* If the clauses in the input list are contradictory or there is a
356358
* pseudo-constant "false", *contradictory is set to true upon return.
357359
*/
358-
List *
360+
static List *
359361
gen_partprune_steps(RelOptInfo *rel, List *clauses, bool *contradictory)
360362
{
361363
GeneratePruningStepsContext context;

src/include/partitioning/partprune.h

-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,5 @@ extern List *make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
6767
extern Relids prune_append_rel_partitions(RelOptInfo *rel);
6868
extern Bitmapset *get_matching_partitions(PartitionPruneContext *context,
6969
List *pruning_steps);
70-
extern List *gen_partprune_steps(RelOptInfo *rel, List *clauses,
71-
bool *contradictory);
7270

7371
#endif /* PARTPRUNE_H */

0 commit comments

Comments
 (0)