!3538 修复回收站导致分区表relfilenode无法删除的问题

Merge pull request !3538 from 胡正超/recyclebin
This commit is contained in:
opengauss_bot
2023-06-19 11:21:37 +00:00
committed by Gitee

View File

@ -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);
}
}