Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 15f91f2

Browse files
committed
Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com>
with minor editorization by me.
1 parent 547e41c commit 15f91f2

File tree

8 files changed

+1256
-5
lines changed

8 files changed

+1256
-5
lines changed

contrib/pg_trgm/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# $PostgreSQL: pgsql/contrib/pg_trgm/Makefile,v 1.6 2007/02/09 17:24:33 petere Exp $
1+
# $PostgreSQL: pgsql/contrib/pg_trgm/Makefile,v 1.7 2007/03/14 14:15:40 teodor Exp $
22

33
MODULE_big = pg_trgm
4-
OBJS = trgm_op.o trgm_gist.o
4+
OBJS = trgm_op.o trgm_gist.o trgm_gin.o
55

66
DATA_built = pg_trgm.sql
77
DATA = uninstall_pg_trgm.sql

contrib/pg_trgm/README.pg_trgm

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Tsearch2 Integration
113113
Next, create a trigram index on the word column:
114114

115115
CREATE INDEX words_idx ON words USING gist(word gist_trgm_ops);
116+
or
117+
CREATE INDEX words_idx ON words USING gin(word gist_trgm_ops);
116118

117119
Now, a SELECT query similar to the example above can be used to
118120
suggest spellings for misspelled words in user search terms. A

0 commit comments

Comments
 (0)