postgresql – 为什么Postgres Hstore索引适用于? (运算符)而不是EXIST(功能)?

postgresql – 为什么Postgres Hstore索引适用于? (运算符)而不是EXIST(功能)?,第1张

概述http://www.postgresql.org/docs/9.2/static/hstore.html州: hstore has GiST and GIN index support for the @>, ?, ?& and ?| operators 但索引don’t work for the EXIST function,似乎相当于? *** 作符. 运算符和函数之间的区别是什么使得索引一个或另一 http://www.postgresql.org/docs/9.2/static/hstore.html州:

hstore has GiST and GIN index support for the @>,?,?& and ?| operators

但索引don’t work for the EXIST function,似乎相当于? *** 作符.

运算符和函数之间的区别是什么使得索引一个或另一个更难?

Hstore扩展的未来版本可能会使这些版本真正等同吗?

解决方法 查找“CREATE OPERATOR CLASS”的文档,该文档描述了如何为任意 *** 作符创建索引方法.您还需要首先使用“CREATE OPERATOR”创建基于EXIST函数的运算符.

(警告:我对hstore没有经验)

http://www.postgresql.org/docs/9.0/static/sql-createoperator.html

http://www.postgresql.org/docs/9.0/static/sql-createopclass.html

总结

以上是内存溢出为你收集整理的postgresql – 为什么Postgres Hstore索引适用于? (运算符)而不是EXIST(功能)?全部内容,希望文章能够帮你解决postgresql – 为什么Postgres Hstore索引适用于? (运算符)而不是EXIST(功能)?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1157878.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存