diff options
| author | Tom Lane | 2019-01-29 21:49:25 +0000 |
|---|---|---|
| committer | Tom Lane | 2019-01-29 21:49:25 +0000 |
| commit | fa2cf164aaf91e074be653c28e035f65d80eb666 (patch) | |
| tree | f492596ab11137cf1cfa38400ebfa7d191d19eda /src/include/partitioning | |
| parent | f09346a9c6218dd239fdf3a79a729716c0d305bd (diff) | |
Rename nodes/relation.h to nodes/pathnodes.h.
The old name of this file was never a very good indication of what it
was for. Now that there's also access/relation.h, we have a potential
confusion hazard as well, so let's rename it to something more apropos.
Per discussion, "pathnodes.h" is reasonable, since a good fraction of
the file is Path node definitions.
While at it, tweak a couple of other headers that were gratuitously
importing relation.h into modules that don't need it.
Discussion: https://postgr.es/m/7719.1548688728@sss.pgh.pa.us
Diffstat (limited to 'src/include/partitioning')
| -rw-r--r-- | src/include/partitioning/partprune.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/partitioning/partprune.h b/src/include/partitioning/partprune.h index ce9bc8d9fd8..397ffaab369 100644 --- a/src/include/partitioning/partprune.h +++ b/src/include/partitioning/partprune.h @@ -15,7 +15,8 @@ #define PARTPRUNE_H #include "nodes/execnodes.h" -#include "nodes/relation.h" +struct PlannerInfo; /* avoid including pathnodes.h here */ +struct RelOptInfo; /* @@ -71,12 +72,12 @@ typedef struct PartitionPruneContext #define PruneCxtStateIdx(partnatts, step_id, keyno) \ ((partnatts) * (step_id) + (keyno)) -extern PartitionPruneInfo *make_partition_pruneinfo(PlannerInfo *root, - RelOptInfo *parentrel, +extern PartitionPruneInfo *make_partition_pruneinfo(struct PlannerInfo *root, + struct RelOptInfo *parentrel, List *subpaths, List *partitioned_rels, List *prunequal); -extern Relids prune_append_rel_partitions(RelOptInfo *rel); +extern Bitmapset *prune_append_rel_partitions(struct RelOptInfo *rel); extern Bitmapset *get_matching_partitions(PartitionPruneContext *context, List *pruning_steps); |
