我正在使用“PostgreSQL 9.1.5”,尝试为文本列创建gin索引,但出现错误消息。
CREATE TABLE users (
first_name text,
last_name text
)
CREATE INDEX users_search_idx ON users USING gin (first_name,last_name)
我有像这样的列值(first_name)
"456fc0470a95c02bb42ef3e35fc81852"
我正在尝试像这样查询数据。
SELECT count(*) FROM users where first_name like '%aeb%'