34 #define NEXTVAL(x) ( (ltree*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) ) 44 (
errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
45 errmsg(
"array must be one-dimensional")));
48 (
errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
49 errmsg(
"array must not contain nulls")));
144 (
errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
145 errmsg(
"array must be one-dimensional")));
148 (
errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
149 errmsg(
"array must not contain nulls")));
215 memcpy(item, found,
VARSIZE(found));
238 memcpy(item, found,
VARSIZE(found));
261 memcpy(item, found,
VARSIZE(found));
284 memcpy(item, found,
VARSIZE(found));
302 (
errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),
303 errmsg(
"array must be one-dimensional")));
306 (
errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
307 errmsg(
"array must not contain nulls")));
Datum _lt_q_rregex(PG_FUNCTION_ARGS)
#define PG_RETURN_POINTER(x)
Datum _ltxtq_exec(PG_FUNCTION_ARGS)
Datum _ltree_r_risparent(PG_FUNCTION_ARGS)
#define PointerGetDatum(X)
#define PG_GETARG_DATUM(n)
int ArrayGetNItems(int ndim, const int *dims)
Datum ltree_risparent(PG_FUNCTION_ARGS)
int errcode(int sqlerrcode)
#define PG_GETARG_LTREE_P(n)
Datum _ltq_extract_regex(PG_FUNCTION_ARGS)
Datum _lt_q_regex(PG_FUNCTION_ARGS)
Datum _ltree_isparent(PG_FUNCTION_ARGS)
Datum _ltree_extract_isparent(PG_FUNCTION_ARGS)
#define PG_GETARG_LQUERY_P(n)
PG_FUNCTION_INFO_V1(_ltree_isparent)
#define PG_GETARG_ARRAYTYPE_P(n)
Datum _ltq_regex(PG_FUNCTION_ARGS)
void pfree(void *pointer)
ltree * lca_inner(ltree **a, int len)
Datum ltq_regex(PG_FUNCTION_ARGS)
static void callback(struct sockaddr *addr, struct sockaddr *mask, void *unused)
static bool array_iterator(ArrayType *la, PGCALL2 callback, void *param, ltree **found)
Datum _ltxtq_rexec(PG_FUNCTION_ARGS)
Datum _ltree_extract_risparent(PG_FUNCTION_ARGS)
Datum ltree_isparent(PG_FUNCTION_ARGS)
void * palloc0(Size size)
#define PG_RETURN_BOOL(x)
#define PG_RETURN_DATUM(x)
Datum(* PGCALL2)(PG_FUNCTION_ARGS)
Datum _ltxtq_extract_exec(PG_FUNCTION_ARGS)
#define ereport(elevel,...)
Datum ltxtq_exec(PG_FUNCTION_ARGS)
Datum _ltree_r_isparent(PG_FUNCTION_ARGS)
#define PG_FREE_IF_COPY(ptr, n)
#define PG_GETARG_LTXTQUERY_P(n)
int errmsg(const char *fmt,...)
Datum _ltree_risparent(PG_FUNCTION_ARGS)
Datum _ltq_rregex(PG_FUNCTION_ARGS)
bool array_contains_nulls(ArrayType *array)
Datum _lca(PG_FUNCTION_ARGS)
#define DirectFunctionCall2(func, arg1, arg2)