diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 87f5e95827..a769e38829 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -4138,6 +4138,7 @@ RefreshMatViewStmt: REFRESH MATERIALIZED VIEW opt_concurrently qualified_name opt_with_data { RefreshMatViewStmt *n = makeNode(RefreshMatViewStmt); + n->relkind = OBJECT_MATVIEW; n->concurrent = $4; n->relation = $5; n->skipData = !($6); diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 07ab1a3dde..2998f401bb 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -3217,6 +3217,7 @@ typedef struct RefreshMatViewStmt bool concurrent; /* allow concurrent access? */ bool skipData; /* true for WITH NO DATA */ RangeVar *relation; /* relation to insert into */ + ObjectType relkind; /* OBJECT_MATVIEW */ } RefreshMatViewStmt; /* ----------------------