PostgreSQL like无法使用索引

使用 like 进行查询 如 explain select* from titles where title like 'h%'  一直显示 Seq Scan。 google+百度后,得知要设定locale为C才能使用like。

使用命令 initdb --local=C -D 集群路径 建立新的集群

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>