Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9272bde

Browse files
committed
Remove unused code for unlogged materialized views.
Commit 3bf3ab8 initially introduced support for unlogged materialized views, but this was later disallowed by commit 3223b25. Additionally, commit d25f519 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
1 parent 19567b3 commit 9272bde

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/backend/access/heap/heapam_handler.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,6 @@ heapam_relation_set_new_filelocator(Relation rel,
610610
if (persistence == RELPERSISTENCE_UNLOGGED)
611611
{
612612
Assert(rel->rd_rel->relkind == RELKIND_RELATION ||
613-
rel->rd_rel->relkind == RELKIND_MATVIEW ||
614613
rel->rd_rel->relkind == RELKIND_TOASTVALUE);
615614
smgrcreate(srel, INIT_FORKNUM, false);
616615
log_smgrcreate(newrlocator, INIT_FORKNUM);

src/bin/psql/describe.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,12 +1970,8 @@ describeOneTableDetails(const char *schemaname,
19701970
schemaname, relationname);
19711971
break;
19721972
case RELKIND_MATVIEW:
1973-
if (tableinfo.relpersistence == 'u')
1974-
printfPQExpBuffer(&title, _("Unlogged materialized view \"%s.%s\""),
1975-
schemaname, relationname);
1976-
else
1977-
printfPQExpBuffer(&title, _("Materialized view \"%s.%s\""),
1978-
schemaname, relationname);
1973+
printfPQExpBuffer(&title, _("Materialized view \"%s.%s\""),
1974+
schemaname, relationname);
19791975
break;
19801976
case RELKIND_INDEX:
19811977
if (tableinfo.relpersistence == 'u')

0 commit comments

Comments
 (0)