mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user