復元中にこのエラーが発生しました: `could not create unique index`

こんにちは、

本番環境のインスタンスをステージング環境のインスタンスと同期させようとしています。現在のバージョンへのアップグレードは成功しましたが、本番環境のバックアップをステージング環境に復元しようとした際に、以下のエラーが発生しています。

[2020-01-14 23:27:08] ERROR:  could not create unique index "index_tags_on_lower_name"
[2020-01-14 23:27:08] DETAIL:  Key (lower(name::text))=(net) is duplicated.
[2020-01-14 23:27:08] EXCEPTION: psql failed: DETAIL:  Key (lower(name::text))=(net) is duplicated.

これに似たトピックを見つけましたが、解決策を実行する方法がわかりません。

ご助言いただければ幸いです!

「いいね!」 1

I had a similar issue. I describe how I fixed it in Can't restore due to corrupt indexes (with some clues on how to deal with corrupt indexes), but it’s largely hand-waiving.

「いいね!」 4