From: | Sean Davis <sdavis2(at)mail(dot)nih(dot)gov> |
---|---|
To: | "Marcin Gil" <marcin(dot)gil(at)audax(dot)com(dot)pl> |
Cc: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: 7.4.x to 8.0 upgrade process |
Date: | 2005-01-20 15:31:54 |
Message-ID: | 69D3AA94-6AF8-11D9-9D53-000D933565E8@mail.nih.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Jan 20, 2005, at 10:22 AM, Marcin Gil wrote:
> ----Original Message----
> From: pgsql-novice-owner(at)postgresql(dot)org
> [mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Sean Davis
> Sent: Thursday, January 20, 2005 2:21 PM
> To: Marcin Gil
> Cc: pgsql-novice(at)postgresql(dot)org
> Subject: Re: [NOVICE] 7.4.x to 8.0 upgrade process
>
>> On Jan 20, 2005, at 2:35 AM, Marcin Gil wrote:
>>
>>> Ok. Just make sure:
>>>
>>> a) pg_dump all databases using pg_dump from version 7.4.x
>>> I have to use pg_dump and not pg_dumpall since I have to dump
>>> tables with OID order and large objects into binary formats.
>>>
>>
>> My understanding from reading the 8.0.0 INSTALL docs is that
>> it is best to use the pg_dumpall from 8.0.0 rather than 7.4.x.
>>
> That's mine too but... How can I install 8.0 simultaneously with 7.4.x?
> 7.4.x has to be running databases while 8.0 should dump them.
> Running 8.0 with 7.4.x files is "A Bad Idea" I heard :)
>
I did:
stop the postmaster (7.4.x)
mv /usr/local/pgsql /usr/local/pgsql7.4.x
install pg 8.0.0 as usual
restart postmaster with -D /usr/local/pgsql7.4.x/data
pg_dumpall > db.out
#if your path is set as before and 8.0.0 is installed in
/usr/local/pgsql, pg_dumpall is now the 8.0.0 version
stop the postmaster with -D /usr/local/pgsql7.4.x/data
start the postmaster with -D /usr/local/pgsql/data
restore the database as usual.
This worked for me.
Sean
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin B. | 2005-01-20 16:00:43 | postgresql log file on fc2 |
Previous Message | Marcin Gil | 2005-01-20 15:22:08 | Re: 7.4.x to 8.0 upgrade process |