Skip to content

Commit 6f57d03

Browse files
committed
This commit is a correction to nodes.h to maintain values assigned to
node tags as same as those for PostgreSQL. It is effective to allow PostgreSQL extension binaries to run within Postgres-XC. Proposed by Krzysztof Nienartowicz.
1 parent 11637f5 commit 6f57d03

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/include/nodes/nodes.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ typedef enum NodeTag
7777
T_SetOp,
7878
T_LockRows,
7979
T_Limit,
80+
/* these aren't subclasses of Plan: */
81+
T_NestLoopParam,
82+
T_PlanRowMark,
83+
T_PlanInvalItem,
8084
#ifdef PGXC
8185
/*
8286
* TAGS FOR PGXC NODES
@@ -92,10 +96,6 @@ typedef enum NodeTag
9296
T_CreateGroupStmt,
9397
T_DropGroupStmt,
9498
#endif
95-
/* these aren't subclasses of Plan: */
96-
T_NestLoopParam,
97-
T_PlanRowMark,
98-
T_PlanInvalItem,
9999

100100
/*
101101
* TAGS FOR PLAN STATE NODES (execnodes.h)
@@ -347,9 +347,6 @@ typedef enum NodeTag
347347
T_ConstraintsSetStmt,
348348
T_ReindexStmt,
349349
T_CheckPointStmt,
350-
#ifdef PGXC
351-
T_BarrierStmt,
352-
#endif
353350
T_CreateSchemaStmt,
354351
T_AlterDatabaseStmt,
355352
T_AlterDatabaseSetStmt,
@@ -393,6 +390,9 @@ typedef enum NodeTag
393390
T_CreateEventTrigStmt,
394391
T_AlterEventTrigStmt,
395392
T_RefreshMatViewStmt,
393+
#ifdef PGXC
394+
T_BarrierStmt,
395+
#endif
396396

397397
/*
398398
* TAGS FOR PARSE TREE NODES (parsenodes.h)

0 commit comments

Comments
 (0)