80 for (n = 0; n < na; n++)
207 if (dirstr == NULL || (dc == 3
208 && (d[0] ==
'A' || d[0] ==
'a')
209 && (d[1] ==
'S' || d[1] ==
's')
210 && (d[2] ==
'C' || d[2] ==
'c')))
213 && (d[0] ==
'D' || d[0] ==
'd')
214 && (d[1] ==
'E' || d[1] ==
'e')
215 && (d[2] ==
'S' || d[2] ==
's')
216 && (d[3] ==
'C' || d[3] ==
'c'))
220 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
221 errmsg(
"second parameter must be \"ASC\" or \"DESC\"")));
309 if (
start >= end || end <= 0)
361 for (
i = 0;
i <
c;
i++)
418 if (k == cb || aa[
i] < bb[k])
420 else if (aa[
i] == bb[k])
bool inner_int_overlap(ArrayType *a, ArrayType *b)
ArrayType * int_to_intset(int32 elem)
ArrayType * intarray_concat_arrays(ArrayType *a, ArrayType *b)
ArrayType * new_intArrayType(int num)
ArrayType * inner_int_union(ArrayType *a, ArrayType *b)
bool inner_int_contains(ArrayType *a, ArrayType *b)
int32 intarray_match_first(ArrayType *a, int32 elem)
ArrayType * intarray_add_elem(ArrayType *a, int32 elem)
ArrayType * inner_int_inter(ArrayType *a, ArrayType *b)
#define QSORT(a, direction)
ArrayType * resize_intArrayType(ArrayType *a, int num)
ArrayType * _int_unique(ArrayType *r)
Datum sort_desc(PG_FUNCTION_ARGS)
Datum _int_contains(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(_int_different)
Datum icount(PG_FUNCTION_ARGS)
Datum _int_union(PG_FUNCTION_ARGS)
Datum uniq(PG_FUNCTION_ARGS)
Datum intarray_push_elem(PG_FUNCTION_ARGS)
Datum _int_same(PG_FUNCTION_ARGS)
Datum _int_inter(PG_FUNCTION_ARGS)
Datum sort(PG_FUNCTION_ARGS)
Datum intset_union_elem(PG_FUNCTION_ARGS)
Datum sort_asc(PG_FUNCTION_ARGS)
Datum intset(PG_FUNCTION_ARGS)
Datum _int_overlap(PG_FUNCTION_ARGS)
Datum subarray(PG_FUNCTION_ARGS)
Datum intarray_del_elem(PG_FUNCTION_ARGS)
Datum _int_different(PG_FUNCTION_ARGS)
Datum idx(PG_FUNCTION_ARGS)
Datum intset_subtract(PG_FUNCTION_ARGS)
Datum intarray_push_array(PG_FUNCTION_ARGS)
Datum _int_contained(PG_FUNCTION_ARGS)
#define PG_GETARG_ARRAYTYPE_P_COPY(n)
#define PG_GETARG_ARRAYTYPE_P(n)
static void PGresult * res
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_FREE_IF_COPY(ptr, n)
#define PG_GETARG_TEXT_PP(n)
#define DirectFunctionCall2(func, arg1, arg2)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_DATUM(n)
#define PG_RETURN_INT32(x)
#define PG_GETARG_INT32(n)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
void pfree(void *pointer)
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
#define VARSIZE_ANY_EXHDR(PTR)