]> granicus.if.org Git - postgresql/commitdiff
Remove Assert that matview is not in system schema from REFRESH.
authorKevin Grittner <kgrittn@postgresql.org>
Wed, 14 Aug 2013 17:36:55 +0000 (12:36 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Wed, 14 Aug 2013 17:36:55 +0000 (12:36 -0500)
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.

src/backend/commands/matview.c

index 5d0e3779c521fc087b0712acd0b054844351a076..8ca4afca60c1b3629b28e9f2bce487d67a701544 100644 (file)
@@ -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);