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 35 of file _ltree_op.c.
typedef Datum(* PGCALL2) (PG_FUNCTION_ARGS) |
Definition at line 33 of file _ltree_op.c.
Datum _lca | ( | PG_FUNCTION_ARGS | ) |
Definition at line 293 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 135 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 169 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 247 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 114 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 126 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 201 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 224 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 72 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 84 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 105 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 93 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 179 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 270 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 191 of file _ltree_op.c.
References _ltxtq_exec(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_DATUM.
|
static |
Definition at line 38 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 | ) |