mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -115,7 +115,8 @@ gin_extract_query_trgm(PG_FUNCTION_ARGS)
|
||||
#endif
|
||||
/* FALL THRU */
|
||||
case RegExpStrategyNumber:
|
||||
trg = createTrgmNFA(val, &graph, PG_GET_COLLATION());
|
||||
trg = createTrgmNFA(val, PG_GET_COLLATION(),
|
||||
&graph, CurrentMemoryContext);
|
||||
if (trg && ARRNELEM(trg) > 0)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user