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

Function array_ref

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

* array_ref : backwards compatibility wrapper for array_get_element * * This only works for detoasted/flattened varlena arrays, since the array * argument is declared as "ArrayType *". However there's enough code like * that to justify preserving this API. */

Source from the content-addressed store, hash-verified

3152 * that to justify preserving this API.
3153 */
3154Datum
3155array_ref(ArrayType *array, int nSubscripts, int *indx,
3156 int arraytyplen, int elmlen, bool elmbyval, char elmalign,
3157 bool *isNull)
3158{
3159 return array_get_element(PointerGetDatum(array), nSubscripts, indx,
3160 arraytyplen, elmlen, elmbyval, elmalign,
3161 isNull);
3162}
3163
3164/*
3165 * array_set : backwards compatibility wrapper for array_set_element

Callers 6

ProcessGUCArrayFunction · 0.85
GUCArrayAddFunction · 0.85
GUCArrayDeleteFunction · 0.85
GUCArrayResetFunction · 0.85
pg_get_functiondefFunction · 0.85
complex_dot_productFunction · 0.85

Calls 1

array_get_elementFunction · 0.85

Tested by

no test coverage detected