Simple, first create your database using template0 as a template database :
createdb -U test -T template0 zeus_production
Then restore the dump in this database:
psql -U test zeus_production -f /path/to/zeus_development.dump.out
When restoring, always use template0 explicit, since it is always an empty and non-modifiable database. If you do not use an explicit template, PostgreSQL will accept template1 , and if it has some objects, such as a table or function, that are already in your database, you will get some recovery errors.
However, even if you were restoring a database with the same name ( zeus_development ), you must create (or recreate) it in the same way. If you did not use the -C option during dumping (or -C from pg_restore if you use a binary dump), which I do not recommend, because it will give you less flexibility (for example, restoring to a different database name).
source share