aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2024-10-18 17:18:57 +0900
committerFujii Masao <fujii@postgresql.org>2024-10-18 17:18:57 +0900
commit9272bdeac879ae44907422dd545f8d767b39c5ad (patch)
treeac26a275f0ca6ce4d559d2d4a3644cc9deb452a5 /src
parent19567b3eb4074c39b48f5557f268c3fb21dfa0f6 (diff)
downloadpostgresql-9272bdeac879ae44907422dd545f8d767b39c5ad.tar.gz
postgresql-9272bdeac879ae44907422dd545f8d767b39c5ad.zip
Remove unused code for unlogged materialized views.
Commit 3bf3ab8c56 initially introduced support for unlogged materialized views, but this was later disallowed by commit 3223b25ff7. Additionally, commit d25f519107 added more code for handling unlogged materialized views. This commit cleans up all unused code related to them. If unlogged materialized views had been supported in any official release, psql would need to retain code to handle them for compatibility with older servers. However, since they were never included in an official release, this code is no longer necessary. Author: Pixian Shi Reviewed-by: Yugo Nagata, Fujii Masao Discussion: https://postgr.es/m/CAAccyYKRZ=OvAvgowiSH+OELbStLP=p2Ht=R3CgT=OaNSH5DAA@mail.gmail.com
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')