Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15f91f2

Browse files
committed
Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com>
with minor editorization by me.
1 parent547e41c commit15f91f2

File tree

8 files changed

+1256
-5
lines changed

8 files changed

+1256
-5
lines changed

‎contrib/pg_trgm/Makefile

Lines changed: 2 additions & 2 deletions
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.otrgm_gin.o
55

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

‎contrib/pg_trgm/README.pg_trgm

Lines changed: 2 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp