|
PostgreSQL Source Code git master
|
#include "access/gist.h"#include "access/itup.h"#include "access/stratnum.h"#include "storage/bufpage.h"

Go to the source code of this file.
Data Structures | |
| struct | TRGM |
Typedefs | |
| typedef char | trgm[3] |
| typedef char * | BITVECP |
| typedef struct TrgmPackedGraph | TrgmPackedGraph |
Functions | |
| double | index_strategy_get_limit (StrategyNumber strategy) |
| uint32 | trgm2int (trgm *ptr) |
| void | compact_trigram (trgm *tptr, char *str, int bytelen) |
| TRGM * | generate_trgm (char *str, int slen) |
| TRGM * | generate_wildcard_trgm (const char *str, int slen) |
| float4 | cnt_sml (TRGM *trg1, TRGM *trg2, bool inexact) |
| bool | trgm_contained_by (TRGM *trg1, TRGM *trg2) |
| bool * | trgm_presence_map (TRGM *query, TRGM *key) |
| TRGM * | createTrgmNFA (text *text_re, Oid collation, TrgmPackedGraph **graph, MemoryContext rcontext) |
| bool | trigramsMatchGraph (TrgmPackedGraph *graph, bool *check) |
Variables | |
| int(* | CMPTRGM )(const void *a, const void *b) |
| double | similarity_threshold |
| double | word_similarity_threshold |
| double | strict_word_similarity_threshold |
| #define ISPRINTABLETRGM | ( | t | ) | ( ISPRINTABLECHAR( ((char*)(t)) ) && ISPRINTABLECHAR( ((char*)(t))+1 ) && ISPRINTABLECHAR( ((char*)(t))+2 ) ) |
| #define SIGLEN_MAX GISTMaxIndexKeySize |
Definition at line 1041 of file trgm_op.c.
References ARRNELEM, CALCSML, CMPTRGM, fb(), and GETARR.
Referenced by gtrgm_consistent(), gtrgm_distance(), and similarity().
Definition at line 248 of file trgm_op.c.
References COMP_LEGACY_CRC32, CPTRGM, crc, fb(), FIN_LEGACY_CRC32, INIT_LEGACY_CRC32, and str.
Referenced by fillTrgm(), and make_trigrams().
|
extern |
Definition at line 524 of file trgm_regexp.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, createTrgmNFAInternal(), CurrentMemoryContext, fb(), MemoryContextDelete(), MemoryContextSwitchTo(), RE_compile(), REG_ADVANCED, REG_ICASE, REG_NOSUB, and regex_t.
Referenced by gin_extract_query_trgm(), and gtrgm_consistent().
Definition at line 406 of file trgm_op.c.
References ARRKEY, CALCGTSIZE, comp_trgm(), fb(), TRGM::flag, generate_trgm_only(), GETARR, len, palloc(), protect_out_of_mem(), qsort, qunique(), SET_VARSIZE(), str, and TRGMHDRSIZE.
Referenced by gin_extract_query_trgm(), gin_extract_value_trgm(), gtrgm_compress(), gtrgm_consistent(), gtrgm_distance(), show_trgm(), and similarity().
Definition at line 916 of file trgm_op.c.
References ARRKEY, buf, CALCGTSIZE, comp_trgm(), fb(), TRGM::flag, get_wildcard_part(), GETARR, len, LPADDING, make_trigrams(), palloc(), palloc_array, pfree(), protect_out_of_mem(), qsort, qunique(), RPADDING, SET_VARSIZE(), str, str_tolower(), and TRGMHDRSIZE.
Referenced by gin_extract_query_trgm(), and gtrgm_consistent().
|
extern |
Definition at line 182 of file trgm_op.c.
References elog, ERROR, similarity_threshold, SimilarityStrategyNumber, strict_word_similarity_threshold, StrictWordSimilarityStrategyNumber, word_similarity_threshold, and WordSimilarityStrategyNumber.
Referenced by gin_trgm_consistent(), gin_trgm_triconsistent(), and gtrgm_consistent().
Definition at line 985 of file trgm_op.c.
References val.
Referenced by gin_extract_query_trgm(), gin_extract_value_trgm(), and show_trgm().
Definition at line 1089 of file trgm_op.c.
References ARRNELEM, CMPTRGM, fb(), and GETARR.
Referenced by gtrgm_consistent().
Definition at line 1128 of file trgm_op.c.
References ARRNELEM, CMPTRGM, fb(), GETARR, i, and palloc0_array.
Referenced by gtrgm_consistent().
|
extern |
Definition at line 628 of file trgm_regexp.c.
References TrgmPackedGraph::colorTrigramGroups, TrgmPackedGraph::colorTrigramsActive, TrgmPackedGraph::colorTrigramsCount, fb(), i, j, TrgmPackedGraph::states, TrgmPackedGraph::statesActive, TrgmPackedGraph::statesCount, and TrgmPackedGraph::statesQueue.
Referenced by gin_trgm_consistent(), gin_trgm_triconsistent(), and gtrgm_consistent().
Definition at line 49 of file trgm_op.c.
Referenced by calc_word_similarity(), CMPTRGM_CHOOSE(), cnt_sml(), comp_ptrgm(), comp_trgm(), gtrgm_same(), trgm_contained_by(), and trgm_presence_map().
|
extern |
Definition at line 27 of file trgm_op.c.
Referenced by _PG_init(), index_strategy_get_limit(), set_limit(), show_limit(), and similarity_op().
|
extern |
Definition at line 29 of file trgm_op.c.
Referenced by _PG_init(), index_strategy_get_limit(), iterate_word_similarity(), strict_word_similarity_commutator_op(), and strict_word_similarity_op().
|
extern |
Definition at line 28 of file trgm_op.c.
Referenced by _PG_init(), index_strategy_get_limit(), iterate_word_similarity(), word_similarity_commutator_op(), and word_similarity_op().