УП>pg_restore: [archiver (db)] could not execute query: ERROR: role "amn_user_ext" does not exist
Я конечно не спец по postgresql , но database роли там общие на все БД (как server roles у MS SQL server)
https://www.postgresql.org/docs/8.1/user-manag.html#DATABASE-ROLES
Database roles are global across a database cluster installation (and not per individual database).
Пишут, что дампить их нужно так:
pg_dumpall --globals-only > globals.dump
https://superuser.com/a/1464986
Возможно другие ошибки имеют аналогичную природу.