# Fehlgeschlagene Wiederherstellung \`entity2char existiert bereits' RDS Postgres 13.7

**URL:** <https://meta.discourse.org/t/restore-failed-entity2char-already-exists-rds-postgres-13-7/245964>\
**Category:** Self-hosting\
**Created:** [17. November 2022 um 20:43 UTC](https://meta.discourse.org/t/restore-failed-entity2char-already-exists-rds-postgres-13-7/245964 "2022-11-17T20:43:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [17. November 2022 um 20:43 UTC](https://meta.discourse.org/t/restore-failed-entity2char-already-exists-rds-postgres-13-7/245964/1 "2022-11-17T20:43:17Z")

</div>

Ich versuche, eine Datenbank wiederherzustellen, die auf `\"Discourse 2.9.0.beta10 - https://github.com/discourse/discourse version 8d3fe3ddc5d38ab02a8f5c6aed7ebf7a6bcfbfec\"\u003e` erstellt wurde und auf `Discourse 2.9.0.beta12 - https://github.com/discourse/discourse version d4371a9ffcc6c727105a880b4b70c715ed0283cb\"\u003e` wiederherzustellen. Beide verwenden RDS Postgres 13.7. Die unkomprimierte Datenbank ist 126 GB groß. Nachdem ich ein paar Tage lang glaubte, ich bräuchte eine 200-GB-Festplatte, um diese Wiederherstellung der 30-GB-komprimierten Datenbank durchzuführen, erhalte ich Folgendes:

```plaintext
...
SET
CREATE TYPE
ERROR: function "entity2char" already exists with same argument types
EXCEPTION: psql failed: ERROR: function "entity2char" already exists with same argument types
/var/www/discourse/lib/backup_restore/database_restorer.rb:92:in `restore_dump'
/var/www/discourse/lib/backup_restore/database_restorer.rb:26:in `restore'
/var/www/discourse/lib/backup_restore/restorer.rb:51:in `run'
...

```

Die Suche nach `"entity2char" already exists` liefert keine Ergebnisse, und ich sehe `entity2char` weder im Kern noch in einem der Plugins. Und ich sehe es auch nicht in `retort`, dem ich die Schuld geben wollte, aber das Entfernen hat nichts geholfen.

Hier sind die Plugins:

```plaintext
         - git clone https://github.com/discourse/discourse-adplugin.git
         - git clone https://github.com/discourse/discourse-affiliate.git
         - git clone https://github.com/discourse/discourse-bbcode.git
         - git clone https://github.com/discourse/discourse-canned-replies.git
         - git clone https://github.com/discourse/discourse-data-explorer.git
         - git clone https://github.com/discourse/discourse-prometheus.git
         - git clone https://github.com/discourse/discourse-push-notifications.git
         - git clone https://github.com/discourse/discourse-signatures.git
         - git clone https://github.com/discourse/discourse-user-notes.git
         - git clone https://github.com/discourse/discourse-spoiler-alert.git
         - git clone https://github.com/discourse/discourse-cakeday.git
         - git clone https://github.com/discourse/discourse-checklist.git
         - git clone https://github.com/discourse/discourse-calendar.git
         - git clone https://github.com/discourse/discourse-reactions.git

```

Und ich habe versucht, nach einer `entity2char`-Funktion in der Datenbank zu suchen, von der ich das Backup gemacht habe, und konnte keine finden.

---

_[View the full topic](https://meta.discourse.org/t/restore-failed-entity2char-already-exists-rds-postgres-13-7/245964)._
