diff options
author | Fujii Masao <fujii@postgresql.org> | 2024-10-18 17:18:57 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2024-10-18 17:18:57 +0900 |
commit | 9272bdeac879ae44907422dd545f8d767b39c5ad (patch) | |
tree | ac26a275f0ca6ce4d559d2d4a3644cc9deb452a5 /src/backend/access/heap/heapam_handler.c | |
parent | 19567b3eb4074c39b48f5557f268c3fb21dfa0f6 (diff) | |
download | postgresql-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/backend/access/heap/heapam_handler.c')
-rw-r--r-- | src/backend/access/heap/heapam_handler.c | 1 |
1 files changed, 0 insertions, 1 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); |