Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2cd368

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 5e3e8e4 commit e2cd368

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backend/commands/matview.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
178178
(errcode(ERRCODE_SYNTAX_ERROR),
179179
errmsg("CONCURRENTLY and WITH NO DATA options cannot be used together")));
180180

181-
/* We're not using materialized views in the system catalogs. */
182-
Assert(!IsSystemRelation(matviewRel));
183-
184181
/* We don't allow an oid column for a materialized view. */
185182
Assert(!matviewRel->rd_rel->relhasoids);
186183

0 commit comments

Comments
 (0)