postgres.git / summary / log / commit / refs

commit    d9a38c52cef3cf80c4259277f11d42a86ecb1952
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Wed Jul 21 06:48:33 2021 +0000
First released in: 15.0

    Rename NodeTag of ExprState
    
    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 | 4 ++-- src/include/nodes/execnodes.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c index 2c8c414a14f..81b9d87bad6 100644 --- a/src/backend/executor/execExpr.c +++ b/src/backend/executor/execExpr.c @@ -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; diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 105180764e1..ffc78447563 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -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 */ [parent: 81d5995b4b78]