Skip to content

Commit 8505237

Browse files
committed
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.
1 parent 6d8186f commit 8505237

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/backend/commands/matview.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
144144
errmsg("\"%s\" is not a materialized view",
145145
RelationGetRelationName(matviewRel))));
146146

147-
/*
148-
* We're not using materialized views in the system catalogs.
149-
*/
150-
Assert(!IsSystemRelation(matviewRel));
151-
147+
/* We don't allow an oid column for a materialized view. */
152148
Assert(!matviewRel->rd_rel->relhasoids);
153149

154150
/*

0 commit comments

Comments
 (0)