# 恢复错误：无法创建唯一索引

**URL:** https://meta.discourse.org/t/error-on-restore-could-not-create-unique-index/220816
**Category:** Self-hosting
**Created:** [2022年三月12日 21:49 UTC](https://meta.discourse.org/t/error-on-restore-could-not-create-unique-index/220816 "2022-03-12T21:49:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年三月12日 22:01 UTC](https://meta.discourse.org/t/error-on-restore-could-not-create-unique-index/220816/2 "2022-03-12T22:01:07Z")

</div>

这很可能是一个损坏的索引。需要有人删除或修复重复的条目。[如何使用 amcheck 检查 PostgreSQL 索引完整性（损坏）](https://meta.discourse.org/t/how-to-use-amcheck-to-check-postgresql-index-integrity-corruption/153207)可能会有帮助。另请参阅 [https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400。](https://meta.discourse.org/t/cant-restore-due-to-corrupt-indexes-with-some-clues-on-how-to-deal-with-corrupt-indexes/137400%E3%80%82)

---

_[View the full topic](https://meta.discourse.org/t/error-on-restore-could-not-create-unique-index/220816)._
