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

Re: Upgrade/Installation problem: Version 7.4.9 to version

From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: Andrew Edson <cheighlund(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Upgrade/Installation problem: Version 7.4.9 to version
Date: 2007-01-17 20:48:46
Message-ID: Pine.LNX.4.64.0701171248220.14094@discord.home.frostconsultingllc.com (view raw or flat)
Thread:
Lists: pgsql-admin
And of course, I should have made mention of the docs here: 
http://www.postgresql.org/docs/8.1/interactive/migration.html

because it likely explains it better than I am. :-)

On Wed, 17 Jan 2007, Jeff Frost wrote:

> You have to dump the original 7.4.9 version of the database and restore that 
> into the 8.1.3 database server.
>
> An example:
>
> I have a server db1 which is running pg 7.4.9
> I have a server db2 which is to replace db1 running pg 8.1.3
>
> I would likely just do something like this from db2 (assuming no clients are 
> writing to db1 while this is happening):
>
> pg_dumpall -h db1 | psql -h db2
>
>
> On Wed, 17 Jan 2007, Andrew Edson wrote:
>
>> Please clear something up for me.  The database I'm trying to upgrade 
>> was/is empty; only the original installation was present, no tables. 
>> Exactly what is it I'm supposed to be dumping?  If you mean making a copy 
>> of the original 8.1.3, that I've done before, but I'm unclear as to the 
>> meaning of what you're saying at the moment.  Please enlighten me.
>> 
>> Jeff Frost <jeff(at)frostconsultingllc(dot)com> wrote:   Andrew,
>> 
>> If you're moving between major versions, a dump/restore is necessary. The
>> proper procedure is:
>> 
>> 1) pg_dump the old database by using the new version of pg_dump (8.1.x)
>> against the old db server (7.4.9 in your case)
>> 2) stop the old database server (and possibly move/rename the old data dir)
>> 3) initdb the new database server
>> 4) edit postgresql.conf, etc
>> 5) start the new database server
>> 6) pg_restore the old database into the newly initialized data directory
>> 
>> So, it sounds like you'll need to reinstall 7.4 and bring it back up, then 
>> use
>> the 8.1.3 pg_dump to create a dump, then restore that into the new 8.1 
>> server.
>> 
>> 
>> ---------------------------------
>> It's here! Your new message!
>> Get new email alerts with the free Yahoo! Toolbar.
>
>

-- 
Jeff Frost, Owner 	<jeff(at)frostconsultingllc(dot)com>
Frost Consulting, LLC 	http://www.frostconsultingllc.com/
Phone: 650-780-7908	FAX: 650-649-1954

In response to

pgsql-admin by date

Next:From: Ray StellDate: 2007-01-17 21:12:25
Subject: Re: Upgrade/Installation problem: Version 7.4.9 to version
Previous:From: Jeff FrostDate: 2007-01-17 20:45:17
Subject: Re: Upgrade/Installation problem: Version 7.4.9 to version

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