postgres模糊查询索引

参考链接:https://www.cnblogs.com/kuang17/p/15647129.html

建立索引方法:

#1. collate "C"
create index idx_test_like_name_c on test_like (name collate "C");
#2. 操作符类varchar_pattern_ops方式
create index idx_test_like_name_ops on test_like (name varchar_pattern_ops);

你可能感兴趣的:(postgres模糊查询索引)