提交 22727acc 编写于 作者: P Paul Guo 提交者: Ashwin Agrawal

Disable materialized view on greenplum.

This feature will not be supported in the oncoming gpdb major release.
Explicitly disable it for now.
上级 894de029
......@@ -1809,7 +1809,6 @@ heap_create_with_catalog(const char *relname,
switch (relkind)
{
case RELKIND_RELATION:
// GPDB_93_MERGE_FIXME: What about MATVIEW?
break;
case RELKIND_INDEX:
subtyp = "INDEX";
......@@ -1820,6 +1819,9 @@ heap_create_with_catalog(const char *relname,
case RELKIND_VIEW:
subtyp = "VIEW";
break;
case RELKIND_MATVIEW:
subtyp = "MATVIEW";
break;
default:
doIt = false;
}
......
......@@ -150,6 +150,8 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
int save_sec_context;
int save_nestlevel;
/* MATERIALIZED_VIEW_FIXME: Refresh MatView is not MPP-fied. */
/* Determine strength of lock needed. */
concurrent = stmt->concurrent;
lockmode = concurrent ? ExclusiveLock : AccessExclusiveLock;
......
......@@ -3236,6 +3236,10 @@ transformCreateTableAsStmt(ParseState *pstate, CreateTableAsStmt *stmt)
/* additional work needed for CREATE MATERIALIZED VIEW */
if (stmt->relkind == OBJECT_MATVIEW)
{
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("materialized view is not supported on greenplum")));
/*
* Prohibit a data-modifying CTE in the query used to create a
* materialized view. It's not sufficiently clear what the user would
......
......@@ -110,10 +110,7 @@ test: namespace
# ----------
test: privileges security_label collate lock replica_identity
# GPDB_93_MERGE_FIXME: Materialized views have not been "MPP-ified", and don't
# currently work. Disable test, until it's fixed. (If they still don't work when
# we make a release, we should add a check in code, to throw a proper "not
# supported" error message.)
# MATERIALIZED_VIEW_FIXME : matview is not supported on greenplum. Enable the test when the feature is ready.
#test: matview
# ----------
......
......@@ -98,7 +98,8 @@ ignore: prepared_xacts
test: privileges
test: security_label
test: collate
test: matview
# MATERIALIZED_VIEW_FIXME : matview is not supported on greenplum. Enable the test when the feature is ready.
#test: matview
test: lock
test: replica_identity
test: alter_generic
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册