30 elog(
ERROR,
"unexpected number of arguments to gin_extract_trgm");
100 elog(
ERROR,
"cannot handle ~~* with case-sensitive trigrams");
114 elog(
ERROR,
"cannot handle ~* with case-sensitive trigrams");
141 elog(
ERROR,
"unrecognized strategy number: %d", strategy);
199 for (
i = 0;
i < nkeys;
i++)
220 res = (nkeys == 0) ?
false :
225 elog(
ERROR,
"cannot handle ~~* with case-sensitive trigrams");
232 for (
i = 0;
i < nkeys;
i++)
243 elog(
ERROR,
"cannot handle ~* with case-sensitive trigrams");
256 elog(
ERROR,
"unrecognized strategy number: %d", strategy);
295 for (
i = 0;
i < nkeys;
i++)
311 elog(
ERROR,
"cannot handle ~~* with case-sensitive trigrams");
318 for (
i = 0;
i < nkeys;
i++)
329 elog(
ERROR,
"cannot handle ~* with case-sensitive trigrams");
346 for (
i = 0;
i < nkeys;
i++)
354 elog(
ERROR,
"unrecognized strategy number: %d", strategy);
#define Assert(condition)
#define palloc_array(type, count)
#define PG_GETARG_TEXT_PP(n)
#define PG_GETARG_POINTER(n)
#define PG_FUNCTION_INFO_V1(funcname)
#define PG_GETARG_UINT16(n)
#define PG_GETARG_INT32(n)
#define PG_RETURN_POINTER(x)
#define PG_GET_COLLATION()
#define PG_RETURN_BOOL(x)
#define PG_RETURN_GIN_TERNARY_VALUE(x)
#define GIN_SEARCH_MODE_ALL
void pfree(void *pointer)
MemoryContext CurrentMemoryContext
static Datum Int32GetDatum(int32 X)
#define RegExpICaseStrategyNumber
#define WordSimilarityStrategyNumber
TRGM * generate_trgm(char *str, int slen)
#define StrictWordSimilarityStrategyNumber
uint32 trgm2int(trgm *ptr)
double index_strategy_get_limit(StrategyNumber strategy)
TRGM * createTrgmNFA(text *text_re, Oid collation, TrgmPackedGraph **graph, MemoryContext rcontext)
#define SimilarityStrategyNumber
bool trigramsMatchGraph(TrgmPackedGraph *graph, bool *check)
#define ILikeStrategyNumber
TRGM * generate_wildcard_trgm(const char *str, int slen)
#define LikeStrategyNumber
#define EqualStrategyNumber
#define RegExpStrategyNumber
Datum gin_trgm_consistent(PG_FUNCTION_ARGS)
Datum gin_trgm_triconsistent(PG_FUNCTION_ARGS)
Datum gin_extract_value_trgm(PG_FUNCTION_ARGS)
Datum gin_extract_query_trgm(PG_FUNCTION_ARGS)
Datum gin_extract_trgm(PG_FUNCTION_ARGS)
static Size VARSIZE_ANY_EXHDR(const void *PTR)
static char * VARDATA_ANY(const void *PTR)