postgresql – 为什么Postgres Hstore索引适用于? (运算符)而不
发布时间:2020-12-13 15:54:29 所属栏目:百科 来源:网络整理
导读: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 运算符和函数之间的区别是什么使得索引一个或另一个更难? 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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |