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

Function arrayoverlap

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

Source from the content-addressed store, hash-verified

4411}
4412
4413Datum
4414arrayoverlap(PG_FUNCTION_ARGS)
4415{
4416 AnyArrayType *array1 = PG_GETARG_ANY_ARRAY_P(0);
4417 AnyArrayType *array2 = PG_GETARG_ANY_ARRAY_P(1);
4418 Oid collation = PG_GET_COLLATION();
4419 bool result;
4420
4421 result = array_contain_compare(array1, array2, collation, false,
4422 &fcinfo->flinfo->fn_extra);
4423
4424 /* Avoid leaking memory when handed toasted input. */
4425 AARR_FREE_IF_COPY(array1, 0);
4426 AARR_FREE_IF_COPY(array2, 1);
4427
4428 PG_RETURN_BOOL(result);
4429}
4430
4431Datum
4432arraycontains(PG_FUNCTION_ARGS)

Callers

nothing calls this directly

Calls 1

array_contain_compareFunction · 0.85

Tested by

no test coverage detected