Rename NodeTag of ExprState
authorPeter Eisentraut
Wed, 21 Jul 2021 06:48:33 +0000 (08:48 +0200)
committerPeter Eisentraut
Wed, 21 Jul 2021 06:48:33 +0000 (08:48 +0200)
Rename from tag to type, for consistency with all other node structs.

Discussion: https://www.postgresql.org/message-id/flat/c1097590-a6a4-486a-64b1-e1f9cc0533ce@enterprisedb.com

src/backend/executor/execExpr.c
src/include/nodes/execnodes.h

index 2c8c414a14f7288c2f3fc81bba86597e9a89e6e4..81b9d87bad660a97a2d2874722a401bd324ba31c 100644 (file)
@@ -363,7 +363,7 @@ ExecBuildProjectionInfo(List *targetList,
 
    projInfo->pi_exprContext = econtext;
    /* We embed ExprState into ProjectionInfo instead of doing extra palloc */
-   projInfo->pi_state.tag = T_ExprState;
+   projInfo->pi_state.type = T_ExprState;
    state = &projInfo->pi_state;
    state->expr = (Expr *) targetList;
    state->parent = parent;
@@ -531,7 +531,7 @@ ExecBuildUpdateProjection(List *targetList,
 
    projInfo->pi_exprContext = econtext;
    /* We embed ExprState into ProjectionInfo instead of doing extra palloc */
-   projInfo->pi_state.tag = T_ExprState;
+   projInfo->pi_state.type = T_ExprState;
    state = &projInfo->pi_state;
    if (evalTargetList)
        state->expr = (Expr *) targetList;
index 105180764e1f2ef6a794ae577e3f1dd97e071083..ffc78447563e2f1423f8a7d07c50b719a51e5e8b 100644 (file)
@@ -60,7 +60,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression,
 
 typedef struct ExprState
 {
-   NodeTag     tag;
+   NodeTag     type;
 
    uint8       flags;          /* bitmask of EEO_FLAG_* bits, see above */