gpt4 book ai didi

postgresql 9.2.4 hstore 搜索键未知运算符

转载 作者:行者123 更新时间:2023-11-29 13:04:42 24 4
gpt4 key购买 nike

不能用?|运算符(operator)。在 postgresql 9.1.9(开发)上工作正常,在 9.2.4(生产)上失败

test=# SELECT 'a=>1,b=>2'::hstore ?| ARRAY['b','c'];
ERROR: operator does not exist: hstore ?| text[]
LINE 1: SELECT 'a=>1,b=>2'::hstore ?| ARRAY['b','c'];
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

已安装 hstore

test=# create extension hstore;
ERROR: type "hstore" already exists

最佳答案

来自 create extension hstore 的错误消息表明您实际上没有安装 extension hstore,只是其中的一些内容. (否则错误消息将是 extension "hstore"already exists。)所以我建议您修复 hstore 安装。 CREATE EXTENSION hstore FROM unpackaged 可能有效。如果没有,您将不得不进行手动手术以移除或添加缺失的部分。

关于postgresql 9.2.4 hstore 搜索键未知运算符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17243033/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com