Compare commits

...

3 Commits

Author SHA1 Message Date
Rashidiya 58091e922f Update heaptuple.cpp
Add the annotation of heap_free_minimal_tuple function
2022-07-15 19:35:09 +08:00
Rashidiya e1aa47a81a Update heaptuple.cpp
Add the annotation for check_column_num function
2022-07-15 12:10:08 +08:00
Rashidiya cdcac809f6 Update heaptuple.cpp
Add the annotation of heap_freetuple function
2022-07-13 00:58:15 +08:00
1 changed files with 7 additions and 0 deletions

View File

@ -1780,12 +1780,18 @@ bool heap_slot_attisnull(TupleTableSlot *slot, int attnum)
/*
* heap_freetuple
* Release the allocated memory of a chunk
*/
void heap_freetuple(HeapTuple htup)
{
pfree(htup);
}
/*
* check_column_num
* Check if the number of columns exceeds the max number of columns.
* If so, report the error
*/
void check_column_num(int column_num)
{
if (column_num > MaxTupleAttributeNumber) {
@ -1901,6 +1907,7 @@ MinimalTuple heap_form_minimal_tuple(TupleDesc tupleDescriptor, Datum *values, c
/*
* heap_free_minimal_tuple
* Release the allocated memory of a free minimal tuple
*/
void heap_free_minimal_tuple(MinimalTuple mtup)
{