From: Kevin Grittner Date: Wed, 14 Aug 2013 17:36:55 +0000 (-0500) Subject: Remove Assert that matview is not in system schema from REFRESH. X-Git-Tag: REL9_4_BETA1~1226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2cd368678e6bcf95d0f66c12e470d163b7a27b6;p=postgresql Remove Assert that matview is not in system schema from REFRESH. We don't want to prevent an extension which creates a matview from being installed in pg_catalog. Issue was raised by Hitoshi Harada. Backpatched to 9.3. --- diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c index 5d0e3779c5..8ca4afca60 100644 --- a/src/backend/commands/matview.c +++ b/src/backend/commands/matview.c @@ -178,9 +178,6 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString, (errcode(ERRCODE_SYNTAX_ERROR), errmsg("CONCURRENTLY and WITH NO DATA options cannot be used together"))); - /* We're not using materialized views in the system catalogs. */ - Assert(!IsSystemRelation(matviewRel)); - /* We don't allow an oid column for a materialized view. */ Assert(!matviewRel->rd_rel->relhasoids);