Skip site navigation (1) Skip section navigation (2)

Re: Upgrade in same major version

From: Evan Rempel <erempel(at)uvic(dot)ca>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Upgrade in same major version
Date: 2008-10-14 17:22:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
What this means is that you do not have to "update" the data repository (wherever your
postgresql database is stored). All that needs to be done is to uninstall the old version,
and install the new version. Start the new version and use the data where it sits.

Now, that all sound fine when I say it fast. There are a number of precautions that
you may prefer to take, and the steps may differ significantly depending on your system.

1. Probably take a complete backup of your database should something go wrong.
2. Ensure that you have a way to "get back" to the previous version, or have
       a very reliable way to move forward, such as taking a pgdump that can be loaded
       back into the database, nearly regardless of version.
3. Your uninstall may be a package management step such as rpm, or you may
       just delete the files if your install was done from source.
4. Your install may be a package management step such as rpm, or you may
       require a "sudo make install" if your install was done from source.

I hope this points you in mostly the right direction without begin to long


Carol Walter wrote:
> Hello,
> I'm doing an upgrade from 8.2.4 to 8.2.10.  The documentation says,
> "When you update between compatible versions, you can simply replace
> the executables and reuse the data directory on disk."  I guess I
> don't quite understand what this means.  Replace them by running some
> parts of the installation process?  Replace them by copying them.
> Are you talking about those files that usually reside in /usr/local/
> pgsql/bin and include psql and pg_ctl?
> I know these may seem like dumb questions to those of you who are old
> hands at this.  I'd be glad to read more documentation if there is
> some that is more explicit than what I quoted above.
> Thanks so much,
> Carol
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:

Evan Rempel                       erempel(at)uvic(dot)ca
Senior Programmer Analyst            250.721.7691
University Systems,        University of Victoria

In response to


pgsql-admin by date

Next:From: Alvaro HerreraDate: 2008-10-14 17:24:20
Subject: Re: Upgrade in same major version
Previous:From: Evan RempelDate: 2008-10-14 17:21:25
Subject: Re: Upgrade in same major version

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group