MCPcopy Create free account
hub / github.com/apache/cloudberry / lappend

Function lappend

src/backend/nodes/list.c:335–348  ·  view source on GitHub ↗

* Append a pointer to the list. A pointer to the modified list is * returned. Note that this function may or may not destructively * modify the list; callers should always use this function's return * value, rather than continuing to use the pointer passed as the * first argument. */

Source from the content-addressed store, hash-verified

333 * first argument.
334 */
335List *
336lappend(List *list, void *datum)
337{
338 Assert(IsPointerList(list));
339
340 if (list == NIL)
341 list = new_list(T_List, 1);
342 else
343 new_tail_cell(list);
344
345 llast(list) = datum;
346 check_list_invariants(list);
347 return list;
348}
349
350/*
351 * Append an integer to the specified list. See lappend()

Callers 15

classifyConditionsFunction · 0.85
deparseVarFunction · 0.85
deparseParamFunction · 0.85
postgresGetForeignPathsFunction · 0.85
postgresGetForeignPlanFunction · 0.85
build_remote_returningFunction · 0.85
rebuild_fdw_scan_tlistFunction · 0.85
foreign_join_okFunction · 0.85
foreign_grouping_okFunction · 0.85

Calls 3

new_listFunction · 0.85
new_tail_cellFunction · 0.85
check_list_invariantsFunction · 0.85

Tested by 5

init_exec_slicesFunction · 0.68
GetPossibleValuesAsArrayFunction · 0.68
RemoveUnmatchingValuesFunction · 0.68
dirty_buffersFunction · 0.68