!3674 修复资源池化系统toast表reloption含有segment=on

Merge pull request !3674 from zhangao/master
This commit is contained in:
opengauss_bot
2023-07-13 01:13:11 +00:00
committed by Gitee

View File

@ -2626,7 +2626,8 @@ Oid heap_create_with_catalog(const char *relname, Oid relnamespace, Oid reltable
/* store tables in segment storage as all possible while initdb */
if (relpersistence == RELPERSISTENCE_PERMANENT &&
(relkind != RELKIND_SEQUENCE && relkind != RELKIND_LARGE_SEQUENCE)) {
(relkind != RELKIND_SEQUENCE && relkind != RELKIND_LARGE_SEQUENCE &&
(!ENABLE_DMS || relkind != RELKIND_TOASTVALUE))) {
storage_type = SEGMENT_PAGE;
reloptions = AddSegmentOption(reloptions);
}