【发布时间】:2019-05-13 09:42:27
【问题描述】:
在处理查询以对 JSON 列执行操作时,我正在测试一些基本操作。 当我运行这个查询时:
SELECT NULL::jsonb::json
我收到以下错误消息:Not connected to the server or the connection to the server has been closed.
服务器运行良好,任何其他查询都有效,但任何围绕这种特定类型转换的东西似乎都在“崩溃”解析器/规划器/服务器。 关于为什么这个特定查询会触发这种行为的任何解释?
我目前正在运行 PostgreSQL 9.6.12 并使用 pgAdmin 4.0 4.6 运行查询
【问题讨论】:
-
我已在 9.6.11 和 9.6.13 上尝试过,但无法重现。服务器端是否有任何记录。
-
是否安装了任何扩展(
\dx)? -
我安装了这些扩展:
pg_trgm, pgcrypto, plpgsql。服务器端的日志只是写着:LOG: statement: SELECT NULL::jsonb::json LOG: statement: SELECT oid, format_type(oid, NULL) AS typname FROM pg_type WHERE oid IN (114) ORDER BY oid;
标签: json postgresql type-conversion jsonb pgadmin