projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8186f
)
Remove Assert that matview is not in system schema from REFRESH.
author
Kevin Grittner
<
[email protected]
>
Wed, 14 Aug 2013 17:43:01 +0000
(12:43 -0500)
committer
Kevin Grittner
<
[email protected]
>
Wed, 14 Aug 2013 17:43:01 +0000
(12:43 -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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/matview.c
b/src/backend/commands/matview.c
index 1c383baf68750808320ebc5e9925b122c802a639..ce7e427c911d88dc6476c493e4e684965360d6f2 100644
(file)
--- a/
src/backend/commands/matview.c
+++ b/
src/backend/commands/matview.c
@@
-144,11
+144,7
@@
ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
errmsg("\"%s\" is not a materialized view",
RelationGetRelationName(matviewRel))));
- /*
- * 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);
/*