Skip to content

Commit

Permalink
Make gen_partprune_steps static
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
alvherre committed May 9, 2018
1 parent c775fb9 commit d1e2cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/backend/partitioning/partprune.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/include/partitioning/partprune.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit d1e2cac

Please sign in to comment.