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 166ce1ec6ed421ac706910fc8ae99b658f4d55d7
Author: Zhang Mingli <[email protected]>
AuthorDate: Sun Jul 13 10:37:20 2025 +0800

    Fix excessive TOAST storage for AO row tables
    
    Customer reported that Cloudberry's AO row TOAST tables consume
    significantly
    more space compared to Greenplum 7. This issue was introduced by commit
    0e819cf3af8aea534ec1bba6c2b6c1a45afc82dc, which cherry-picked fixes from
    GPDB.
    
    Correct the parameter order to resolve the space inefficiency.
    
    Authored-by: Zhang Mingli [email protected]
---
 src/backend/access/heap/heaptoast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/access/heap/heaptoast.c 
b/src/backend/access/heap/heaptoast.c
index 2ba251efc00..5d4745341aa 100644
--- a/src/backend/access/heap/heaptoast.c
+++ b/src/backend/access/heap/heaptoast.c
@@ -106,7 +106,7 @@ heap_toast_insert_or_update(Relation rel, HeapTuple newtup, 
HeapTuple oldtup, in
 MemTuple memtup_toast_insert_or_update(Relation rel, MemTuple newtup, MemTuple 
oldtup,
                                                                           
MemTupleBinding *pbind, int toast_tuple_target, int options)
 {
-       return (MemTuple) heap_toast_insert_or_update_generic(rel, newtup, 
oldtup, pbind, toast_tuple_target, options, true);
+       return (MemTuple) heap_toast_insert_or_update_generic(rel, newtup, 
oldtup, pbind, options, toast_tuple_target, true);
 }
 
 static void *


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to