From 7faffef735d9ca92a64b78e0358bb858b3dce2cd Mon Sep 17 00:00:00 2001 From: gentle_hu Date: Wed, 7 Jun 2023 15:31:22 +0800 Subject: [PATCH] Fix issue: recyclebin cause partition table relfilenode unable to be deleted. --- src/gausskernel/storage/smgr/smgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/storage/smgr/smgr.cpp b/src/gausskernel/storage/smgr/smgr.cpp index 22b6c24061..e4b3fba1de 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); } } -- Gitee