PostgreSQL 哈希索引和不等式
PostgreSQL hash indexes and inequality
PostgreSQL 文档指出散列索引适用于相等比较。
Hash indexes can only handle simple equality comparisons.
The query planner will consider using a hash index whenever an
indexed column is involved in a comparison using the = operator.
这是否意味着它也可以用于检验不等式?即 !=
不,那行不通。
如何使用散列 table 有效地找到所有 不 等于特定值的项目?
PostgreSQL 文档指出散列索引适用于相等比较。
Hash indexes can only handle simple equality comparisons.
The query planner will consider using a hash index whenever an
indexed column is involved in a comparison using the = operator.
这是否意味着它也可以用于检验不等式?即 !=
不,那行不通。
如何使用散列 table 有效地找到所有 不 等于特定值的项目?