PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | NODE |
struct | PLAINTREE |
Typedefs | |
typedef struct NODE | NODE |
Functions | |
static NODE * | maketree (QueryItem *in) |
static void | plainnode (PLAINTREE *state, NODE *node) |
static QueryItem * | plaintree (NODE *root, int *len) |
static void | freetree (NODE *node) |
static NODE * | clean_NOT_intree (NODE *node) |
QueryItem * | clean_NOT (QueryItem *ptr, int *len) |
static NODE * | clean_stopword_intree (NODE *node, int *ladd, int *radd) |
static int32 | calcstrlen (NODE *node) |
TSQuery | cleanup_tsquery_stopwords (TSQuery in, bool noisy) |
Definition at line 363 of file tsquery_cleanup.c.
References Assert, NODE::left, QueryOperand::length, OP_NOT, QueryOperator::oper, QI_OPR, QI_VAL, QueryItem::qoperand, QueryItem::qoperator, NODE::right, size, QueryItem::type, and NODE::valnode.
Referenced by cleanup_tsquery_stopwords().
Definition at line 190 of file tsquery_cleanup.c.
References clean_NOT_intree(), len, maketree(), plaintree(), and root.
Referenced by tsquerytree().
Definition at line 136 of file tsquery_cleanup.c.
References Assert, check_stack_depth(), freetree(), NODE::left, OP_AND, OP_NOT, OP_OR, OP_PHRASE, QueryOperator::oper, pfree(), QI_VAL, QueryItem::qoperator, res, NODE::right, QueryItem::type, and NODE::valnode.
Referenced by clean_NOT().
Definition at line 238 of file tsquery_cleanup.c.
References Assert, check_stack_depth(), QueryOperator::distance, freetree(), NODE::left, Max, OP_NOT, OP_PHRASE, QueryOperator::oper, pfree(), QI_OPR, QI_VAL, QI_VALSTOP, QueryItem::qoperator, res, NODE::right, QueryItem::type, and NODE::valnode.
Referenced by cleanup_tsquery_stopwords().
Definition at line 387 of file tsquery_cleanup.c.
References calcstrlen(), clean_stopword_intree(), COMPUTESIZE, QueryOperand::distance, ereport, errmsg(), GETOPERAND, GETQUERY, HDRSIZETQ, i, items, len, QueryOperand::length, maketree(), NOTICE, palloc(), plaintree(), QI_VAL, root, SET_VARSIZE, TSQueryData::size, and QueryOperand::type.
Referenced by parse_tsquery().
|
static |
Definition at line 115 of file tsquery_cleanup.c.
References check_stack_depth(), NODE::left, pfree(), and NODE::right.
Referenced by clean_NOT_intree(), and clean_stopword_intree().
Definition at line 33 of file tsquery_cleanup.c.
References check_stack_depth(), NODE::left, QueryOperator::left, OP_NOT, QueryOperator::oper, palloc(), QI_OPR, QueryItem::qoperator, NODE::right, QueryItem::type, and NODE::valnode.
Referenced by clean_NOT(), and cleanup_tsquery_stopwords().
Definition at line 62 of file tsquery_cleanup.c.
References check_stack_depth(), cur, NODE::left, OP_NOT, QueryOperator::oper, pfree(), QI_VAL, QueryItem::qoperator, repalloc(), NODE::right, QueryItem::type, and NODE::valnode.
Referenced by plaintree().
Definition at line 97 of file tsquery_cleanup.c.
References PLAINTREE::cur, PLAINTREE::len, len, palloc(), plainnode(), PLAINTREE::ptr, QI_OPR, QI_VAL, and root.
Referenced by clean_NOT(), and cleanup_tsquery_stopwords().