diff options
author | Tom Lane | 2013-04-10 17:30:14 +0000 |
---|---|---|
committer | Tom Lane | 2013-04-10 17:31:02 +0000 |
commit | 6f5b8beb64d481c28a483090d10099c8d619c797 (patch) | |
tree | 185ab33fecd04386903147f52b6d7b0f14fd8ec2 /contrib/pg_trgm/trgm.h | |
parent | e543631f3c162ab5f6020b1d0209e0353ca2229a (diff) |
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.
Diffstat (limited to 'contrib/pg_trgm/trgm.h')
-rw-r--r-- | contrib/pg_trgm/trgm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/pg_trgm/trgm.h b/contrib/pg_trgm/trgm.h index 15e7bebb001..ed649b8dccd 100644 --- a/contrib/pg_trgm/trgm.h +++ b/contrib/pg_trgm/trgm.h @@ -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__ */ |