This is an automated email from the ASF dual-hosted git repository. avamingli pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit b471d413fb750429a5c7146fddd09ad09d2d0ed3 Author: Ashwin Agrawal <[email protected]> AuthorDate: Mon Apr 17 19:09:01 2023 -0700 Remove unused memtuple_binding code for AOCO AOCO tables don't use memtuples so no need to create or destroy memtuple. --- src/backend/access/aocs/aocs_compaction.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/access/aocs/aocs_compaction.c b/src/backend/access/aocs/aocs_compaction.c index d688b98ed1..31d4ddcec0 100644 --- a/src/backend/access/aocs/aocs_compaction.c +++ b/src/backend/access/aocs/aocs_compaction.c @@ -236,7 +236,6 @@ AOCSSegmentFileFullCompaction(Relation aorel, TupleTableSlot *slot; int compact_segno; ResultRelInfo *resultRelInfo; - MemTupleBinding *mt_bind; EState *estate; int64 tupleCount = 0; int64 tuplePerPage = INT_MAX; @@ -276,8 +275,6 @@ AOCSSegmentFileFullCompaction(Relation aorel, slot = MakeSingleTupleTableSlot(tupDesc, &TTSOpsVirtual); slot->tts_tableOid = RelationGetRelid(aorel); - mt_bind = create_memtuple_binding(tupDesc); - /* * We need a ResultRelInfo and an EState so we can use the regular * executor's index-entry-making machinery. @@ -376,7 +373,6 @@ AOCSSegmentFileFullCompaction(Relation aorel, FreeExecutorState(estate); ExecDropSingleTupleTableSlot(slot); - destroy_memtuple_binding(mt_bind); aocs_endscan(scanDesc); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
