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