Thread: Upgrading to a major version
Hello,
I am actually using PostgreSQL 9.1 and I am thinking about upgrading to version 9.4 or 9.5. I have read that the most feasible and secure way to upgrade PostgreSQL to a major version is by using pg_dump/pg_restore. Is this correct?
Does an upgrade applies for going from 32-bit to 64-bit?
Respectfully
Jorge Maldonado
> JORGE MALDONADO <jorgemal1960@gmail.com> hat am 21. März 2016 um 16:22 > geschrieben: > > > Hello, > > I am actually using PostgreSQL 9.1 and I am thinking about upgrading to > version 9.4 or 9.5. I have read that the most feasible and secure way to > upgrade PostgreSQL to a major version is by using pg_dump/pg_restore. Is > this correct? pg_dump dumps only one database, for a complete backup for the upgrade i would suggest pg_dumpall, this dumps also global objects (user). The result is a plain ASCII-File, this can you play with psql. You should use the pg_dump(all) from the higher version if possible. > > Does an upgrade applies for going from 32-bit to 64-bit? you can also change the platform, a dump is (should be) independed. -- Andreas Kretschmer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Hi Jorge, Have you read the upgrade documentation for 9.5? http://www.postgresql.org/docs/9.5/static/upgrading.html The up-shot is that if you are upgrading in place, pg_upgrade might very well work (definitely should have a backup available just in case), but if you are moving to a new, non-ABI-compatible platform, you will have to go via pg_dumpall. On Mon, Mar 21, 2016 at 10:22:26AM -0500, JORGE MALDONADO wrote: > Hello, > > I am actually using PostgreSQL 9.1 and I am thinking about upgrading to > version 9.4 or 9.5. I have read that the most feasible and secure way to > upgrade PostgreSQL to a major version is by using pg_dump/pg_restore. Is > this correct? > > Does an upgrade applies for going from 32-bit to 64-bit? > > Respectfully > Jorge Maldonado -- -- Skylar Thompson (skylar2@u.washington.edu) -- Genome Sciences Department, System Administrator -- Foege Building S046, (206)-685-7354 -- University of Washington School of Medicine