From d36f56fc402e3ffb10b4ceffd8ed108a86b4b3f7 Mon Sep 17 00:00:00 2001 From: sundechao Date: Mon, 1 Jul 2024 19:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAstore=E8=A1=A8=E5=9C=A8enabl?= =?UTF-8?q?e=5Frecyclebin=3Don=E6=83=85=E5=86=B5=E4=B8=8B=E6=AE=B5?= =?UTF-8?q?=E9=A1=B5=E5=BC=8F=E8=A1=A8=E5=88=9B=E5=BB=BA=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/optimizer/commands/tablecmds.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gausskernel/optimizer/commands/tablecmds.cpp b/src/gausskernel/optimizer/commands/tablecmds.cpp index 723f42ef3..4675b0d5f 100755 --- a/src/gausskernel/optimizer/commands/tablecmds.cpp +++ b/src/gausskernel/optimizer/commands/tablecmds.cpp @@ -2892,7 +2892,7 @@ ObjectAddress DefineRelation(CreateStmt* stmt, char relkind, Oid ownerId, Object if (!IsInitdb && (relkind == RELKIND_RELATION) && !IsSystemNamespace(namespaceId) && !IsCStoreNamespace(namespaceId) && (pg_strcasecmp(storeChar, ORIENTATION_ROW) == 0) && - (stmt->relation->relpersistence == RELPERSISTENCE_PERMANENT) && !u_sess->attr.attr_storage.enable_recyclebin) { + (stmt->relation->relpersistence == RELPERSISTENCE_PERMANENT)) { bool isSegmentType = (storage_type == SEGMENT_PAGE); if (!isSegmentType && (u_sess->attr.attr_storage.enable_segment || bucketinfo != NULL)) { storage_type = SEGMENT_PAGE; @@ -2901,12 +2901,6 @@ ObjectAddress DefineRelation(CreateStmt* stmt, char relkind, Oid ownerId, Object reloptions = transformRelOptions((Datum)0, stmt->options, NULL, validnsps, true, false); } } else if (storage_type == SEGMENT_PAGE) { - if (u_sess->attr.attr_storage.enable_recyclebin) { - ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmodule(MOD_SEGMENT_PAGE), - errmsg("The table %s do not support segment-page storage", stmt->relation->relname), - errdetail("Segment-page storage doest not support recyclebin"), - errhint("set enable_recyclebin = off before using segmnet-page storage."))); - } ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("The table %s do not support segment storage", stmt->relation->relname)));