diff --git a/src/gausskernel/storage/smgr/smgr.cpp b/src/gausskernel/storage/smgr/smgr.cpp index 22b6c2406..e4b3fba1d 100755 --- a/src/gausskernel/storage/smgr/smgr.cpp +++ b/src/gausskernel/storage/smgr/smgr.cpp @@ -894,7 +894,8 @@ void partition_create_new_storage(Relation rel, Partition part, const RelFileNod /* * Schedule unlinking of the old storage at transaction commit. */ - if (!u_sess->attr.attr_storage.enable_recyclebin) { + if (!u_sess->attr.attr_storage.enable_recyclebin || + !RelationIsTableAccessMethodUStoreType(rel->rd_options)) { PartitionDropStorage(rel, part); } }