PostgreSQL哈希索引和不等式

时间:2019-01-09 17:41:54

标签: postgresql hashtable

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. 

这是否意味着在测试不平等性时也可以使用它?例如!=

1 个答案:

答案 0 :(得分:1)

不,那是行不通的。

您将如何使用哈希表来有效地找到所有等于某个值的项目?

相关问题