Weeeeeeell I guess if that’s working then that’s okay ¯\_(ツ)_/¯ It’s difficult to say more without the exact error message and having a Matrix dev/expert around …
Naively I believe all the relation 'foobar' already exists are fine because we’re restoring the dump on top of an existing DB … The violates unique constraint messages are probably related to this as well and should be fine … maybe …
Maybe that one is a bit more problematic:
ERROR: insert or update on table "destination_rooms" violates foreign key constraint "destination_rooms_destination_fkey"
DETAIL: Key (destination)=(matrix.org) is not present in table "destinations".
but that’s really a rough guess …
If you identify issues later, could also try to do a different kind of restore that would recreate the DB from scratch (using the dump) rather than inject the dump on top of an existing db …