PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/gin.h"
#include "access/stratnum.h"
#include "fmgr.h"
#include "trgm.h"
#include "varatt.h"
Go to the source code of this file.
Datum gin_extract_query_trgm | ( | PG_FUNCTION_ARGS | ) |
Definition at line 70 of file trgm_gin.c.
References ARRNELEM, createTrgmNFA(), CurrentMemoryContext, elog, EqualStrategyNumber, ERROR, generate_trgm(), generate_wildcard_trgm(), GETARR, GIN_SEARCH_MODE_ALL, i, ILikeStrategyNumber, Int32GetDatum(), LikeStrategyNumber, palloc(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_GETARG_TEXT_PP, PG_GETARG_UINT16, PG_RETURN_POINTER, RegExpICaseStrategyNumber, RegExpStrategyNumber, SimilarityStrategyNumber, StrictWordSimilarityStrategyNumber, trgm2int(), val, VARDATA_ANY, VARSIZE_ANY_EXHDR, and WordSimilarityStrategyNumber.
Referenced by gin_extract_trgm().
Datum gin_extract_trgm | ( | PG_FUNCTION_ARGS | ) |
Definition at line 24 of file trgm_gin.c.
References elog, ERROR, gin_extract_query_trgm(), gin_extract_value_trgm(), PG_NARGS, and PG_RETURN_NULL.
Datum gin_extract_value_trgm | ( | PG_FUNCTION_ARGS | ) |
Definition at line 35 of file trgm_gin.c.
References ARRNELEM, generate_trgm(), GETARR, i, Int32GetDatum(), palloc(), PG_GETARG_POINTER, PG_GETARG_TEXT_PP, PG_RETURN_POINTER, trgm2int(), val, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by gin_extract_trgm().
Datum gin_trgm_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 170 of file trgm_gin.c.
References elog, EqualStrategyNumber, ERROR, i, ILikeStrategyNumber, index_strategy_get_limit(), LikeStrategyNumber, PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, RegExpICaseStrategyNumber, RegExpStrategyNumber, res, SimilarityStrategyNumber, StrictWordSimilarityStrategyNumber, trigramsMatchGraph(), and WordSimilarityStrategyNumber.
Datum gin_trgm_triconsistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 269 of file trgm_gin.c.
References Assert, elog, EqualStrategyNumber, ERROR, GIN_FALSE, GIN_MAYBE, GIN_TRUE, i, ILikeStrategyNumber, index_strategy_get_limit(), LikeStrategyNumber, palloc(), pfree(), PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_GIN_TERNARY_VALUE, RegExpICaseStrategyNumber, RegExpStrategyNumber, res, SimilarityStrategyNumber, StrictWordSimilarityStrategyNumber, trigramsMatchGraph(), and WordSimilarityStrategyNumber.
PG_FUNCTION_INFO_V1 | ( | gin_extract_query_trgm | ) |
PG_FUNCTION_INFO_V1 | ( | gin_extract_trgm | ) |
PG_FUNCTION_INFO_V1 | ( | gin_extract_value_trgm | ) |
PG_FUNCTION_INFO_V1 | ( | gin_trgm_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gin_trgm_triconsistent | ) |