# Index corrompus dans PG12, comment les réparer ?

**URL:** https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570
**Category:** Self-hosting
**Created:** [Mai 25, 2020, 2:45 UTC](https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570 "2020-05-25T02:45:43Z")
**Posts on this page:** 1
**Showing post:** 36

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [Mai 29, 2020, 3:13 UTC](https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570/36 "2020-05-29T03:13:35Z")

</div>

Après avoir exécuté la mise à niveau vers la version 2.5.0beta5 et suivi les recommandations post-mise à jour pour [réindexer la base de données](https://meta.discourse.org/t/postgresql-12-update/151236?u=omarfilip#re-indexing-your-database), j’obtiens le message suivant :

```
discourse=# REINDEX SCHEMA CONCURRENTLY public;
ERROR: could not create unique index "index_plugin_store_rows_on_plugin_name_and_key_ccnew"
DETAIL: Key (plugin_name, key)=(discourse-data-explorer, q:-10) is duplicated.

```

Je préfère ne pas expérimenter avec cela… alors, comment supprimer en toute sécurité la duplication ?

---

_[View the full topic](https://meta.discourse.org/t/corrupt-indexes-in-pg12-how-do-i-fix/152570)._
