From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-admin@postgresql.org
Subject: Re: Need some info.
Date: Fri, 11 Jan 2008 10:24:49 -0500
Message-ID: <20080111152449.GA5963@crankycanuck.ca> (raw)
In-Reply-To: <3D5445983859B84B92669C0D883EA6FB0BC38B00@ZENMAILHQ1.ind.zensar.com>
References: <3D5445983859B84B92669C0D883EA6FB0BC38B00@ZENMAILHQ1.ind.zensar.com>
On Thu, Jan 10, 2008 at 01:07:09PM +0530, Suresh Gupta VG wrote:
> We are upgrading the pgsql from 7.4.2 to 8.2.5 on Solaris 9 Spark
> machine, I had downloaded the sources also. I had gone through the
> instalation documents too. I could not find the procedure to rollback
> the new version, if the new version does not support our application.
This is a difficulty, yes.
> 1) Can we do rollback if required after complete installation??
Generally, major releases are binary incompatible. If you find your upgrade
fails, you can of course continue to use your old installation (so don't
delete your old data directory!). But if you've processed transactions in
the new system, they'll be lost to the old installation, and then you're
hosed.
What you _can_ do, however, is install Slony. You might need to upgrade
your 7.4 version to do this -- the version you have is very old, and there
are some bugs that might affect Slony (I don't remember). Not to worry --
that shouldn't be a big deal (it's not a dump and restore). But it will
require some planning and such. What you do, in this case, is install Slony
on 7.4, add the 8.2.x replica, and let it catch up. When it's time to do
your upgrade, you do a switchover (not a failover) and cause the 8.2.x to
replicate to your 7.4.x installation. Now transactions that happen in 8.2
will also appear in 7.4, and if something blows up, you can switch back.
This feature is an explicit design goal of Slony, and Afilias has used it in
production, so I can be confident it works. But you need to do a lot of
planning and testing. It isn't something to do in a couple days' time.
> 3) If we do the installation in the other directory which doesn't
> contain old version. Does it solve our problem
Sort of; see above.
A
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ajs@crankycanuck.ca
Subject: Re: Need some info.
In-Reply-To: <20080111152449.GA5963@crankycanuck.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox