aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/heap/heapam_handler.c1
-rw-r--r--src/bin/psql/describe.c8
2 files changed, 2 insertions, 7 deletions
diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c
index 1c6da286d43..8c59b77b64f 100644
--- a/src/backend/access/heap/heapam_handler.c
+++ b/src/backend/access/heap/heapam_handler.c
@@ -610,7 +610,6 @@ heapam_relation_set_new_filelocator(Relation rel,
if (persistence == RELPERSISTENCE_UNLOGGED)
{
Assert(rel->rd_rel->relkind == RELKIND_RELATION ||
- rel->rd_rel->relkind == RELKIND_MATVIEW ||
rel->rd_rel->relkind == RELKIND_TOASTVALUE);
smgrcreate(srel, INIT_FORKNUM, false);
log_smgrcreate(newrlocator, INIT_FORKNUM);
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 6a36c910833..363a66e7185 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -1970,12 +1970,8 @@ describeOneTableDetails(const char *schemaname,
schemaname, relationname);
break;
case RELKIND_MATVIEW:
- if (tableinfo.relpersistence == 'u')
- printfPQExpBuffer(&title, _("Unlogged materialized view \"%s.%s\""),
- schemaname, relationname);
- else
- printfPQExpBuffer(&title, _("Materialized view \"%s.%s\""),
- schemaname, relationname);
+ printfPQExpBuffer(&title, _("Materialized view \"%s.%s\""),
+ schemaname, relationname);
break;
case RELKIND_INDEX:
if (tableinfo.relpersistence == 'u')