Our computer is old and running Postgres 9.5. I have set up a new computer and installed Postgres 16. I’m having problems backing up the DB and restoring it on the new computer.
I’ve tried pgadmin and also pg_dump and pg_restore but it fails on the restore every time with errors relating to permissions.
Is there a foolproof method of doing this or a step-by-step guide I can follow?
Have you created the same users (and credentials) on the new database as you have on the old one? And have you already created the database with the same name?