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/c91299c4-199b-0f16-339b-a29d6d2a39ee@lab.ntt.co.jp
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy