Skip to content

Comment on PostgreSQL 8.4 Releasedparent

Comments

It's one command to dump and one command to restore:

pg_dump -Fc database > database.backup

upgrade postgresql

pg_restore -d database database.backup

You should use pg_dumpall rather than pg_dump, typically. Also, remember to use the pg_dump implementation from the new version of PostgreSQL (e.g. 8.4), not the old one (e.g. 8.3).

There's also the new (beta) pg_migrator tool which allows upgrades to be performed without a dump + reload. http://pgfoundry.org/projects/pg-migrator/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.