mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +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:
@@ -14,7 +14,7 @@
|
||||
#ifndef APPENDINFO_H
|
||||
#define APPENDINFO_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "utils/relcache.h"
|
||||
|
||||
extern AppendRelInfo *make_append_rel_info(Relation parentrel,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#define CLAUSES_H
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#ifndef COST_H
|
||||
#define COST_H
|
||||
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
|
||||
/* defaults for costsize.c's Cost parameters */
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef GEQO_H
|
||||
#define GEQO_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "optimizer/geqo_gene.h"
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef INHERIT_H
|
||||
#define INHERIT_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
extern void expand_inherited_tables(PlannerInfo *root);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef JOININFO_H
|
||||
#define JOININFO_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
extern bool have_relevant_joinclause(PlannerInfo *root,
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
/*
|
||||
* We don't want to include nodes/relation.h here, because non-planner
|
||||
* We don't want to include nodes/pathnodes.h here, because non-planner
|
||||
* code should generally treat PlannerInfo as an opaque typedef.
|
||||
* But we'd like such code to use that typedef name, so define the
|
||||
* typedef either here or in relation.h, whichever is read first.
|
||||
* typedef either here or in pathnodes.h, whichever is read first.
|
||||
*/
|
||||
#ifndef HAVE_PLANNERINFO_TYPEDEF
|
||||
typedef struct PlannerInfo PlannerInfo;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef ORCLAUSES_H
|
||||
#define ORCLAUSES_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
extern void extract_restriction_or_clauses(PlannerInfo *root);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#ifndef PARAMASSIGN_H
|
||||
#define PARAMASSIGN_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
extern Param *replace_outer_var(PlannerInfo *root, Var *var);
|
||||
extern Param *replace_outer_placeholdervar(PlannerInfo *root,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#define PATHNODE_H
|
||||
|
||||
#include "nodes/bitmapset.h"
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef PATHS_H
|
||||
#define PATHS_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef PLACEHOLDER_H
|
||||
#define PLACEHOLDER_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
extern PlaceHolderVar *make_placeholder_expr(PlannerInfo *root, Expr *expr,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef PLANCAT_H
|
||||
#define PLANCAT_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "utils/relcache.h"
|
||||
|
||||
/* Hook for plugins to get control in get_relation_info() */
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#ifndef PLANMAIN_H
|
||||
#define PLANMAIN_H
|
||||
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
/* GUC parameters */
|
||||
#define DEFAULT_CURSOR_TUPLE_FRACTION 0.1
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#ifndef PLANNER_H
|
||||
#define PLANNER_H
|
||||
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
|
||||
/* Hook for plugins to get control in planner() */
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#ifndef PREP_H
|
||||
#define PREP_H
|
||||
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef RESTRICTINFO_H
|
||||
#define RESTRICTINFO_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
/* Convenience macro for the common case of a valid-everywhere qual */
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
#ifndef SUBSELECT_H
|
||||
#define SUBSELECT_H
|
||||
|
||||
#include "nodes/pathnodes.h"
|
||||
#include "nodes/plannodes.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
extern void SS_process_ctes(PlannerInfo *root);
|
||||
extern JoinExpr *convert_ANY_sublink_to_join(PlannerInfo *root,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef TLIST_H
|
||||
#define TLIST_H
|
||||
|
||||
#include "nodes/relation.h"
|
||||
#include "nodes/pathnodes.h"
|
||||
|
||||
|
||||
extern TargetEntry *tlist_member(Expr *node, List *targetlist);
|
||||
|
||||
Reference in New Issue
Block a user