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

Function lcons_oid

src/backend/nodes/list.c:503–516  ·  view source on GitHub ↗

* Prepend an OID to the list. See lcons() */

Source from the content-addressed store, hash-verified

501 * Prepend an OID to the list. See lcons()
502 */
503List *
504lcons_oid(Oid datum, List *list)
505{
506 Assert(IsOidList(list));
507
508 if (list == NIL)
509 list = new_list(T_OidList, 1);
510 else
511 new_head_cell(list);
512
513 linitial_oid(list) = datum;
514 check_list_invariants(list);
515 return list;
516}
517
518/*
519 * Concatenate list2 to the end of list1, and return list1.

Callers 5

pg_partition_ancestorsFunction · 0.85
ReindexMultipleTablesFunction · 0.85
LPrependOidMethod · 0.85
PushOverrideSearchPathFunction · 0.85
recomputeNamespacePathFunction · 0.85

Calls 3

new_listFunction · 0.85
new_head_cellFunction · 0.85
check_list_invariantsFunction · 0.85

Tested by

no test coverage detected