Re: How to update from 8.1 to 8.2 ? - Mailing list pgsql-admin

From Carol Walter
Subject Re: How to update from 8.1 to 8.2 ?
Date
Msg-id 3069AA17-872B-4AB0-810A-14B1754BF7A3@indiana.edu
Whole thread Raw
In response to Re: How to update from 8.1 to 8.2 ?  ("Chris Hoover" <revoohc@gmail.com>)
List pgsql-admin
Chris,

Perhaps I wasn't clear on what we did.  We loaded the 8.2 and got it running on a different zone on the same machine running Solaris.  I should have said we did a pg_dumpall using the 8.1 data.  ( I know there is a big difference.)  Anyway, I did the pg_dumpall (using the correct version, the new version.) of the live data and uploaded it to the 8.2 instance.  The 8.1 instance was still running.  Both systems automount the same dirs.  We were able to put the data from the 8.1 instance onto a directory that the 8.2 instance could see, which made the cut over very quick and the production system just had to be down long enough to stop and restart.  I had already modified the conf files and we didn't blow them away so we were good to go.  I just froze data entry from when I started the dump until the new instance was available.  That meant people could still select data from the website.  After the 8.2 instance was up and running and everything looked like in came over correctly, we shut down the 8.1 instance.

Sorry about the confusion.

Carol

On Sep 20, 2007, at 2:06 PM, Chris Hoover wrote:



On 9/20/07, Carol Walter <walterc@indiana.edu> wrote:
We just did this.  I did a pg_dumpall using 8.1.  Then we fired up
8.2 while 8.1 was still running.  Uploaded the data to 8.2.  Then
shut 8.1 down.  This allowed us to have the database unavailable for
a very short time.

Carol


Carol,

If this is truely what you did, you are a very lucky person.  You are always supposed to dump the old database using the new versions pg_dump/pg_dumpall.  That way, pg_dump/pg_dumpall can set up the data for any changes made by the newer version.

Just an fyi for those following this thread.

HTH,

chris



pgsql-admin by date:

Previous
From: "Yogesh Arora"
Date:
Subject: Schedular Problem in Postgres
Next
From: "Jayakumar_Mukundaraju"
Date:
Subject: Re: Schedular Problem in Postgres