From: Andres Freund Date: Fri, 20 Sep 2019 02:20:28 +0000 (-0700) Subject: FIX: ExprState.tag to actually just be a tag. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=f1985f1daaa94c3b19b7bd69c1aef403420da439;p=users%2Fandresfreund%2Fpostgres.git FIX: ExprState.tag to actually just be a tag. Author: Reviewed-By: Discussion: https://postgr.es/m/ Backpatch: --- diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c index 20ee1d3fb4..39442f8866 100644 --- a/src/backend/executor/execExpr.c +++ b/src/backend/executor/execExpr.c @@ -361,7 +361,7 @@ ExecBuildProjectionInfo(List *targetList, projInfo->pi_exprContext = econtext; /* We embed ExprState into ProjectionInfo instead of doing extra palloc */ - projInfo->pi_state.tag.type = T_ExprState; + projInfo->pi_state.tag = T_ExprState; state = &projInfo->pi_state; state->expr = (Expr *) targetList; state->parent = parent; diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index b593d22c48..44f76082e9 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -61,7 +61,7 @@ typedef Datum (*ExprStateEvalFunc) (struct ExprState *expression, typedef struct ExprState { - Node tag; + NodeTag tag; uint8 flags; /* bitmask of EEO_FLAG_* bits, see above */