PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/gin.h"
#include "tsearch/ts_type.h"
#include "tsearch/ts_utils.h"
#include "utils/builtins.h"
#include "varatt.h"
Go to the source code of this file.
Data Structures | |
struct | GinChkVal |
|
static |
Definition at line 183 of file tsginidx.c.
References GinChkVal::check, data, GinChkVal::first_item, GIN_MAYBE, GIN_TRUE, j, GinChkVal::map_item_operand, and val.
Referenced by gin_tsquery_consistent(), and gin_tsquery_triconsistent().
Datum gin_cmp_prefix | ( | PG_FUNCTION_ARGS | ) |
Definition at line 40 of file tsginidx.c.
References a, b, cmp(), PG_FREE_IF_COPY, PG_GETARG_POINTER, PG_GETARG_TEXT_PP, PG_GETARG_UINT16, PG_RETURN_INT32, tsCompareString(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum gin_cmp_tslexeme | ( | PG_FUNCTION_ARGS | ) |
Definition at line 24 of file tsginidx.c.
References a, b, cmp(), PG_FREE_IF_COPY, PG_GETARG_TEXT_PP, PG_RETURN_INT32, tsCompareString(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum gin_extract_tsquery | ( | PG_FUNCTION_ARGS | ) |
Definition at line 94 of file tsginidx.c.
References cstring_to_text_with_len(), GETOPERAND, GETQUERY, GIN_SEARCH_MODE_ALL, GIN_SEARCH_MODE_DEFAULT, i, j, palloc(), palloc0(), PG_FREE_IF_COPY, PG_GETARG_POINTER, PG_GETARG_TSQUERY, PG_RETURN_POINTER, PointerGetDatum(), QI_VAL, QueryItem::qoperand, TSQueryData::size, tsquery_requires_match(), type, and val.
Referenced by gin_extract_tsquery_5args(), and gin_extract_tsquery_oldsig().
Datum gin_extract_tsquery_5args | ( | PG_FUNCTION_ARGS | ) |
Definition at line 316 of file tsginidx.c.
References elog, ERROR, gin_extract_tsquery(), and PG_NARGS.
Datum gin_extract_tsquery_oldsig | ( | PG_FUNCTION_ARGS | ) |
Definition at line 340 of file tsginidx.c.
References gin_extract_tsquery().
Datum gin_extract_tsvector | ( | PG_FUNCTION_ARGS | ) |
Definition at line 64 of file tsginidx.c.
References ARRPTR, cstring_to_text_with_len(), i, WordEntry::len, palloc(), PG_FREE_IF_COPY, PG_GETARG_POINTER, PG_GETARG_TSVECTOR, PG_RETURN_POINTER, PointerGetDatum(), WordEntry::pos, TSVectorData::size, and STRPTR.
Referenced by gin_extract_tsvector_2args().
Datum gin_extract_tsvector_2args | ( | PG_FUNCTION_ARGS | ) |
Definition at line 304 of file tsginidx.c.
References elog, ERROR, gin_extract_tsvector(), and PG_NARGS.
Datum gin_tsquery_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 214 of file tsginidx.c.
References GinChkVal::check, checkcondition_gin(), GinChkVal::first_item, GETQUERY, GinChkVal::map_item_operand, PG_GETARG_POINTER, PG_GETARG_TSQUERY, PG_RETURN_BOOL, res, TSQueryData::size, TS_EXEC_PHRASE_NO_POS, TS_execute_ternary(), TS_MAYBE, TS_NO, and TS_YES.
Referenced by gin_tsquery_consistent_6args(), and gin_tsquery_consistent_oldsig().
Datum gin_tsquery_consistent_6args | ( | PG_FUNCTION_ARGS | ) |
Definition at line 328 of file tsginidx.c.
References elog, ERROR, gin_tsquery_consistent(), and PG_NARGS.
Datum gin_tsquery_consistent_oldsig | ( | PG_FUNCTION_ARGS | ) |
Definition at line 350 of file tsginidx.c.
References gin_tsquery_consistent().
Datum gin_tsquery_triconsistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 263 of file tsginidx.c.
References GinChkVal::check, checkcondition_gin(), GinChkVal::first_item, GETQUERY, GIN_FALSE, GinChkVal::map_item_operand, PG_GETARG_POINTER, PG_GETARG_TSQUERY, PG_RETURN_GIN_TERNARY_VALUE, res, TSQueryData::size, TS_EXEC_PHRASE_NO_POS, and TS_execute_ternary().