Upgrade Postgresql to a newer Version
Jump to navigation
Jump to search
How to Upgrade Postgresql
- Check that the server is running
- Start the dump
$ pg_dumpall > db.out
- Upgrade Postgresql to a newer version via for example Yast
- Start Postgresql server or initalize the new DB and start Postgresql server.
- Import the database
$ psql -f db.out template1
Now Postgresql is running in a newer version with the data of the old version.