mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
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
This commit is contained in:
parent
19567b3eb4
commit
9272bdeac8
@ -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);
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user