gpdb icon indicating copy to clipboard operation
gpdb copied to clipboard

Fix the value of `Gp_max_tuple_chunk_size`

Open SmartKeyerror opened this issue 1 year ago • 1 comments

This PR is trying to fix the problem that there are 4 bytes in IC package that are never used.

When we set gp_max_packet_size to the minimum value of 512 and put a breakpoint in QD's RecvTupleChunk function, we can find that the value of conn->msgSize is only 508, and the correct value should be 512. This is because when calculating the longest tuple length, an additional TUPLE_CHUNK_HEADER_SIZE is subtracted, which is 4 bytes:

Thread 1 "postgres" hit Breakpoint 1, RecvTupleChunk () at ic_common.c:93
(gdb) n
(gdb) p conn->msgSize
$10 = 508
(gdb) n
(gdb) p tcSize
$11 = 444

SmartKeyerror avatar Jan 17 '24 08:01 SmartKeyerror