I'm trying to convert my all database from PG_SQL 7.3.1 for win32 to PG 8.0 but there is a problem with it.I referenced this html help file :


pg_dumpall > backup (This works well with PG7.3.1)

then i transferred the backup file to 8.0 bin directory and tried second command :

psql template1 < backup

does not work.Password authentication error.
So i tried pg_restore but it gives "File does not appear valid".So how should i transfer it?