mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Make contrib/pg_trgm also support regex searches with GiST indexes.
This wasn't addressed in the original patch, but it doesn't take very much additional code to cover the case, so let's get it done. Since pg_trgm 1.1 hasn't been released yet, I just changed the definition of what's in it, rather than inventing a 1.2.
This commit is contained in:
@ -113,8 +113,9 @@ extern TRGM *generate_trgm(char *str, int slen);
|
||||
extern TRGM *generate_wildcard_trgm(const char *str, int slen);
|
||||
extern float4 cnt_sml(TRGM *trg1, TRGM *trg2);
|
||||
extern bool trgm_contained_by(TRGM *trg1, TRGM *trg2);
|
||||
extern TRGM *createTrgmNFA(text *text_re, TrgmPackedGraph **graph,
|
||||
Oid collation);
|
||||
extern bool *trgm_presence_map(TRGM *query, TRGM *key);
|
||||
extern TRGM *createTrgmNFA(text *text_re, Oid collation,
|
||||
TrgmPackedGraph **graph, MemoryContext rcontext);
|
||||
extern bool trigramsMatchGraph(TrgmPackedGraph *graph, bool *check);
|
||||
|
||||
#endif /* __TRGM_H__ */
|
||||
|
Reference in New Issue
Block a user