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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user