At some point, user databases need to be migrated to a different server. This need for server migration could be due to new hardware or a database-server software upgrade.
The following are the three methods available for migrating a database:
- Dumping and restoring the database with pg_dump and pg_restore
- Performing an in-place upgrade of the database with pg_upgrade
- Performing streaming replication from one server to another