You need to use pg_dump from the new version, not from the old version.
OK upon further thought, what you're saying is to use the pg_dump tool that comes with the pg version you are upgrading to.
I read it as "use pg_dump instead of pg_restore"...
I was just trying to simplify the guidance here. :)