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. 这是否意味着它也可以用于测试不平等?即!=
发布于 2019-01-09 17:52:46
不,那行不通。
如何使用哈希表有效地查找不等于某个值的所有项?
https://stackoverflow.com/questions/54115653
复制相似问题