I have upgraded from postgreSQL 7.0.2 to 7.2.1. I pg_dump my database and then I use psql to restore on new server.
Before my restore I used "createdb dbname" - and this generated the name as a number instead of putting it in as dbname. Then when I used "psql -d dbname -f dbname.dump" - the database name that was on the old server remains as the number generated by createdb such as 16555.
How do I restore so name is retained?
Before my restore I used "createdb dbname" - and this generated the name as a number instead of putting it in as dbname. Then when I used "psql -d dbname -f dbname.dump" - the database name that was on the old server remains as the number generated by createdb such as 16555.
How do I restore so name is retained?