Re: 7.4.x to 8.0 upgrade process

Поиск
Список
Период
Сортировка
От Sean Davis
Тема Re: 7.4.x to 8.0 upgrade process
Дата
Msg-id 69D3AA94-6AF8-11D9-9D53-000D933565E8@mail.nih.gov
обсуждение исходный текст
Ответ на Re: 7.4.x to 8.0 upgrade process  ("Marcin Gil" <marcin.gil@audax.com.pl>)
Список pgsql-novice
On Jan 20, 2005, at 10:22 AM, Marcin Gil wrote:

> ----Original Message----
> From: pgsql-novice-owner@postgresql.org
> [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Sean Davis
> Sent: Thursday, January 20, 2005 2:21 PM
> To: Marcin Gil
> Cc: pgsql-novice@postgresql.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


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Marcin Gil"
Дата:
Сообщение: Re: 7.4.x to 8.0 upgrade process
Следующее
От: "Kevin B."
Дата:
Сообщение: postgresql log file on fc2