Re: Load DB - Conversion from 8.1.4 to 8.2.4

Поиск
Список
Период
Сортировка
От Peter Koczan
Тема Re: Load DB - Conversion from 8.1.4 to 8.2.4
Дата
Msg-id 4681ABDF.70305@gmail.com
обсуждение исходный текст
Ответ на Re: Load DB - Conversion from 8.1.4 to 8.2.4  (Tommy Gildseth <tommy.gildseth@usit.uio.no>)
Ответы Re: Load DB - Conversion from 8.1.4 to 8.2.4
Список pgsql-admin
Tommy Gildseth wrote:
> Campbell, Lance wrote:
>>
>> I will be converting from PostgreSQL 8.1.4 to 8.2.4. Is it OK to do
>> the following command in order to load the new database after install?
>>
>> pg_dump -h /host1/ –p 1234 /dbname/ | psql -h /host1 –p 56789/
>> /dbname///
>>
>> Remember that port 1234 is PostgreSQL 8.1.4 and port 5678 is
>> PostgreSQL 8.2.4.
>>
>
> Should be fine, as long as you ensure that the pg_dump you use, is the
> one from your 8.2.4 installation, and not the 8.1.4 version.
>
>
Two quick addendums:

- pg_dump doesn't dump large objects. You should use the following if
you use large objects.

pg_dump -h /host1/ –p 1234 -Fc /dbname/ | pg_restore -h /host1 –p 56789/
/dbname///

- There might be some other issues with the upgrade. I've run into
permissions issues, data types that were checked more strictly, and a
couple broken primary keys in my days as an admin. I'm not saying you'll
run into these, but if you can, do a dry run of a dump/restore so you
can solve the problems up front.

Peter

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

Предыдущее
От: "Peter Koczan"
Дата:
Сообщение: postgres benchmarking
Следующее
От: "Mutua K"
Дата:
Сообщение: Re: An I/O error occured while sending to the backend