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

Function initArrayResult

src/backend/utils/adt/arrayfuncs.c:5183–5193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5181 */
5182
5183ArrayBuildState *
5184initArrayResult(Oid element_type, MemoryContext rcontext, bool subcontext)
5185{
5186 /*
5187 * When using a subcontext, we can afford to start with a somewhat larger
5188 * initial array size. Without subcontexts, we'd better hope that most of
5189 * the states stay small ...
5190 */
5191 return initArrayResultWithSize(element_type, rcontext, subcontext,
5192 subcontext ? 64 : 8);
5193}
5194
5195/*
5196 * initArrayResultWithSize

Callers 12

plperl_array_to_datumFunction · 0.85
xpathFunction · 0.85
populate_arrayFunction · 0.85
range_agg_transfnFunction · 0.85
accumArrayResultFunction · 0.85
initArrayResultAnyFunction · 0.85
array_agg_transfnFunction · 0.85
array_positionsFunction · 0.85
column_valueFunction · 0.85

Calls 1

initArrayResultWithSizeFunction · 0.85

Tested by

no test coverage detected