PG12 中索引损坏,如何修复?

有可能。我认为前面的 % 就足够了,但我也可能弄错了。

3 个赞

正确。

例如:

3 个赞

但是……所有设置都是小写的,所以在查询中直接使用小写是否就不需要 ilike 了?

6 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

好吧,如果这能让任何人感觉好点,我自己也遇到了!

Caused by:
PG::UniqueViolation: ERROR:  could not create unique index "index_incoming_referers_on_path_and_incoming_domain_id_c_ccnew2"
DETAIL:  Key (path, incoming_domain_id)=(/_, 1169) is duplicated.

上面的说明——进入容器,启动 postgres,查询坏数据,按 id 删除它……很有帮助。

6 个赞