How to restore postgreSQL schema dump to schema with different name
If the data is smallish, I would just do the pg_dump, restore it to a temporary just-for-this-purpose database server, rename the schema within that temporary server (ALTER SCHEMA...RENAME...
), and dump it out of that temporary server to do the final restore.
the easiest thing is: dump the stuff. open the dump file in vi. fix, what has to be fixed and replay the stuff.