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:
@ -216,8 +216,8 @@ SELECT * FROM test_trgm WHERE t LIKE '%foo%bar';
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Beginning in <productname>PostgreSQL</> 9.3, <filename>pg_trgm</filename>
|
||||
GIN indexes also support index searches for regular-expression matches
|
||||
Beginning in <productname>PostgreSQL</> 9.3, these index types also support
|
||||
index searches for regular-expression matches
|
||||
(<literal>~</> and <literal>~*</> operators), for example
|
||||
<programlisting>
|
||||
SELECT * FROM test_trgm WHERE t ~ '(foo|bar)';
|
||||
|
Reference in New Issue
Block a user