索引列我有列col
數據類型CHARACTER VARYING
全文搜索
我需要指數在列gin
指數。如果想直接設置杜松子酒索引列,返回的錯誤:
data type character varying has no default operator class for access method "gin" HINT: You must specify an operator class for the index or define a default operator class for the data type
如果想:
create index col_vector
on mytable
using gin (to_tsvector(col))
我得到錯誤:functions in index expression must be marked IMMUTABLE
如何創建gin
指數CHARACTER VARYING
列?
p.s.我需要這個全文搜索
這本手冊中的全文搜索討論。 – 2013-05-13 23:37:59