Skip navigation.
Home
Freeware and Free & Open Source Software for Proprietary OSes

Reply to comment

Actually, the dump restore

Actually, the dump restore is pretty common with databases.

Where I used to work we were upgrading from Oracle 9i to 10g. You can bet there was a migration plan, and it took literally weeks to prepare for it. Dumping and restoring was a part of that plan. In fact, Oracle was far more difficult to upgrade than pgsql was.

Due to the way pgsql is made, it's unlikely that dump/restore for major version upgrades is going away anytime soon.

Note that it's considered best to dump from the version you're going TO, not FROM, so it's handy to have both versions installed at once.

On debian / ubuntu, it's easy to do and there's a command pg_upgradecluster that takes as argument the versions and the locations of the two clusters (a pg installation is called a cluster) and then initdbs the new one like the old one, and initiates a pg_dumpall from the old to the new and voila, you're migrated. Really, it's pretty seamless.

Reply

The content of this field is kept private and will not be shown publicly.