Dump and reload is ok if you have a small database or can afford hours of downtime... if not, use pg_upgrade.