לא ניתן לשחזר database: sql key משוכפל

It looks like you have a corrupt index. You’ll need to delete or update those entries. If you search I think there may still be some topics that describe generally hour to do it.

On the old server you try to reindex that table and keep changing stuff until it succeeds. If you’re not familiar with sql and have a budget then you can ask in Marketplace or contact me.

What version of Discourse and postgres are you running? I haven’t seen many cases of this since postgres 13.