PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | NEXTVAL(x) ( (ltree*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) ) |
Typedefs | |
typedef Datum(* | PGCALL2) (PG_FUNCTION_ARGS) |
Definition at line 34 of file _ltree_op.c.
typedef Datum(* PGCALL2) (PG_FUNCTION_ARGS) |
Definition at line 32 of file _ltree_op.c.
Datum _lca | ( | PG_FUNCTION_ARGS | ) |
Definition at line 292 of file _ltree_op.c.
References a, ARR_DATA_PTR, ARR_DIMS, ARR_NDIM, array_contains_nulls(), ArrayGetNItems(), ereport, errcode(), errmsg(), ERROR, lca_inner(), NEXTVAL, palloc(), pfree(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_RETURN_NULL, PG_RETURN_POINTER, and res.
Datum _lt_q_regex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 134 of file _ltree_op.c.
References ARR_DATA_PTR, ARR_DIMS, ARR_NDIM, array_contains_nulls(), array_iterator(), ArrayGetNItems(), ereport, errcode(), errmsg(), ERROR, ltq_regex(), NEXTVAL, PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_RETURN_BOOL, and res.
Referenced by _lt_q_rregex().
Datum _lt_q_rregex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 168 of file _ltree_op.c.
References _lt_q_regex(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _ltq_extract_regex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 246 of file _ltree_op.c.
References array_iterator(), ltq_regex(), palloc0(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LQUERY_P, PG_RETURN_NULL, PG_RETURN_POINTER, and VARSIZE.
Datum _ltq_regex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 113 of file _ltree_op.c.
References array_iterator(), ltq_regex(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LQUERY_P, PG_RETURN_BOOL, and res.
Referenced by _ltq_rregex().
Datum _ltq_rregex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 125 of file _ltree_op.c.
References _ltq_regex(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _ltree_extract_isparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 200 of file _ltree_op.c.
References array_iterator(), ltree_isparent(), palloc0(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTREE_P, PG_RETURN_NULL, PG_RETURN_POINTER, and VARSIZE.
Datum _ltree_extract_risparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 223 of file _ltree_op.c.
References array_iterator(), ltree_risparent(), palloc0(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTREE_P, PG_RETURN_NULL, PG_RETURN_POINTER, and VARSIZE.
Datum _ltree_isparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 71 of file _ltree_op.c.
References array_iterator(), ltree_isparent(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTREE_P, PG_RETURN_BOOL, and res.
Referenced by _ltree_r_isparent().
Datum _ltree_r_isparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 83 of file _ltree_op.c.
References _ltree_isparent(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _ltree_r_risparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 104 of file _ltree_op.c.
References _ltree_risparent(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
Datum _ltree_risparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 92 of file _ltree_op.c.
References array_iterator(), ltree_risparent(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTREE_P, PG_RETURN_BOOL, and res.
Referenced by _ltree_r_risparent().
Datum _ltxtq_exec | ( | PG_FUNCTION_ARGS | ) |
Definition at line 178 of file _ltree_op.c.
References array_iterator(), ltxtq_exec(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTXTQUERY_P, PG_RETURN_BOOL, and res.
Referenced by _ltxtq_rexec().
Datum _ltxtq_extract_exec | ( | PG_FUNCTION_ARGS | ) |
Definition at line 269 of file _ltree_op.c.
References array_iterator(), ltxtq_exec(), palloc0(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTXTQUERY_P, PG_RETURN_NULL, PG_RETURN_POINTER, and VARSIZE.
Datum _ltxtq_rexec | ( | PG_FUNCTION_ARGS | ) |
Definition at line 190 of file _ltree_op.c.
References _ltxtq_exec(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
|
static |
Definition at line 37 of file _ltree_op.c.
References ARR_DATA_PTR, ARR_DIMS, ARR_NDIM, array_contains_nulls(), ArrayGetNItems(), callback(), DatumGetBool, DirectFunctionCall2, ereport, errcode(), errmsg(), ERROR, NEXTVAL, and PointerGetDatum.
Referenced by _lt_q_regex(), _ltq_extract_regex(), _ltq_regex(), _ltree_extract_isparent(), _ltree_extract_risparent(), _ltree_isparent(), _ltree_risparent(), _ltxtq_exec(), _ltxtq_extract_exec(), array_position_common(), array_positions(), and exec_stmt_foreach_a().
PG_FUNCTION_INFO_V1 | ( | _lca | ) |
PG_FUNCTION_INFO_V1 | ( | _lt_q_regex | ) |
PG_FUNCTION_INFO_V1 | ( | _lt_q_rregex | ) |
PG_FUNCTION_INFO_V1 | ( | _ltq_extract_regex | ) |
PG_FUNCTION_INFO_V1 | ( | _ltq_regex | ) |
PG_FUNCTION_INFO_V1 | ( | _ltq_rregex | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_extract_isparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_extract_risparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_isparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_r_isparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_r_risparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltree_risparent | ) |
PG_FUNCTION_INFO_V1 | ( | _ltxtq_exec | ) |
PG_FUNCTION_INFO_V1 | ( | _ltxtq_extract_exec | ) |
PG_FUNCTION_INFO_V1 | ( | _ltxtq_rexec | ) |