|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include "catalog/pg_collation.h"#include "ltree.h"#include "miscadmin.h"#include "utils/array.h"#include "utils/formatting.h"
Go to the source code of this file.
Macros | |
| #define | NEXTVAL(x) ( (lquery*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) ) |
Functions | |
| PG_FUNCTION_INFO_V1 (ltq_regex) | |
| PG_FUNCTION_INFO_V1 (ltq_rregex) | |
| PG_FUNCTION_INFO_V1 (lt_q_regex) | |
| PG_FUNCTION_INFO_V1 (lt_q_rregex) | |
| static char * | getlexeme (char *start, char *end, int *len) |
| bool | compare_subnode (ltree_level *t, char *qn, int len, bool prefix, bool ci) |
| bool | ltree_label_match (const char *pred, size_t pred_len, const char *label, size_t label_len, bool prefix, bool ci) |
| static bool | checkLevel (lquery_level *curq, ltree_level *curt) |
| static bool | checkCond (lquery_level *curq, int qlen, ltree_level *curt, int tlen) |
| Datum | ltq_regex (PG_FUNCTION_ARGS) |
| Datum | ltq_rregex (PG_FUNCTION_ARGS) |
| Datum | lt_q_regex (PG_FUNCTION_ARGS) |
| Datum | lt_q_rregex (PG_FUNCTION_ARGS) |
Definition at line 22 of file lquery_op.c.
|
static |
Definition at line 184 of file lquery_op.c.
References CHECK_FOR_INTERRUPTS, check_stack_depth(), checkCond(), checkLevel(), fb(), LEVEL_NEXT, lquery_level::low, LQL_COUNT, and LQL_NEXT.
Referenced by checkCond(), and ltq_regex().
|
static |
Definition at line 150 of file lquery_op.c.
References compare_subnode(), fb(), lquery_variant::flag, i, lquery_variant::len, LQL_FIRST, LQL_NOT, ltree_label_match(), LVAR_ANYEND, LVAR_INCASE, LVAR_NEXT, LVAR_SUBLEXEME, lquery_variant::name, and success.
Referenced by checkCond().
Definition at line 44 of file lquery_op.c.
References fb(), getlexeme(), ltree_level::len, len, ltree_label_match(), and ltree_level::name.
Referenced by checkcondition_str(), and checkLevel().
Definition at line 25 of file lquery_op.c.
References fb(), len, pg_mblen_range(), start, and t_iseq.
Referenced by compare_subnode().
| Datum lt_q_regex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 287 of file lquery_op.c.
References ARR_DATA_PTR, ARR_DIMS, ARR_NDIM, array_contains_nulls(), ArrayGetNItems(), DatumGetBool(), DirectFunctionCall2, ereport, errcode(), errmsg, ERROR, fb(), ltq_regex(), NEXTVAL, PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_LTREE_P, PG_RETURN_BOOL, PointerGetDatum(), and tree.
Referenced by lt_q_rregex(), and ltree_consistent().
| Datum lt_q_rregex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 323 of file lquery_op.c.
References DirectFunctionCall2, lt_q_regex(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
| Datum ltq_regex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 263 of file lquery_op.c.
References checkCond(), LQUERY_FIRST, LTREE_FIRST, lquery::numlevel, PG_FREE_IF_COPY, PG_GETARG_LQUERY_P, PG_GETARG_LTREE_P, PG_RETURN_BOOL, and tree.
Referenced by _lt_q_regex(), _ltq_extract_regex(), _ltq_regex(), lt_q_regex(), ltq_rregex(), and ltree_consistent().
| Datum ltq_rregex | ( | PG_FUNCTION_ARGS | ) |
Definition at line 278 of file lquery_op.c.
References DirectFunctionCall2, ltq_regex(), PG_GETARG_DATUM, and PG_RETURN_DATUM.
| bool ltree_label_match | ( | const char * | pred, |
| size_t | pred_len, | ||
| const char * | label, | ||
| size_t | label_len, | ||
| bool | prefix, | ||
| bool | ci | ||
| ) |
Definition at line 81 of file lquery_op.c.
References Assert, fb(), label, len, palloc(), pfree(), pg_database_locale(), pg_strfold(), and repalloc().
Referenced by checkcondition_str(), checkLevel(), and compare_subnode().
| PG_FUNCTION_INFO_V1 | ( | lt_q_regex | ) |
| PG_FUNCTION_INFO_V1 | ( | lt_q_rregex | ) |
| PG_FUNCTION_INFO_V1 | ( | ltq_regex | ) |
| PG_FUNCTION_INFO_V1 | ( | ltq_rregex | ) |