In Postgresql world you need to upgrade your database to a new major version on your own. Postgres provides the pg_upgrade executable to do so:
(I am going to upgrade from 9.3 to 9.4)
That’s it. There is also an other way descried in the postgresql wiki Harder way:
Lowercase options are for the old database and uppercase options are for the new database.
- -b Binary directory
- -d Data directory
- -o Options