gpt4 book ai didi

postgresql - Volatile EquivalenceClass 没有 sortref

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

我在跑:PostgreSQL 9.0.3(最后一个 Debian 稳定版)

这个查询:

SELECT * FROM sis.thread_categories stc, sis.threads st WHERE st.id_thread_categories=stc.id

=> 抛出:

ERROR: volatile EquivalenceClass has no sortref State SQL: XX000

当我尝试使用 JOIN 时,同样的问题发生了。有人知道我做错了什么吗?

最佳答案

我认为您的数据库可能已损坏,这是不应该发生的。来自 backend/optimizer/path/pathkeys.c在 PostgreSQL 源代码中:

List *
convert_subquery_pathkeys(PlannerInfo *root, RelOptInfo *rel,
List *subquery_pathkeys)
{
/*...*/
if (sub_eclass->ec_sortref == 0) /* can't happen */
elog(ERROR, "volatile EquivalenceClass has no sortref");

该错误消息出现在源代码中的另外两个地方,但触发条件 ec_sortref == 0 是相同的,并且相同的“不可能发生”注释出现在所有三个地方.

所以要么你的数据库损坏了,要么你在 PostgreSQL 中发现了一个错误。

关于postgresql - Volatile EquivalenceClass 没有 sortref,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5939764/

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