Re: What is the best plan to upgrade PostgreSQL from an ancient version?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What is the best plan to upgrade PostgreSQL from an ancient version?
Дата
Msg-id 4437.1233023634@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What is the best plan to upgrade PostgreSQL from an ancient version?  ("Dann Corbit" <DCorbit@connx.com>)
Ответы Re: What is the best plan to upgrade PostgreSQL from an ancient version?
Re: What is the best plan to upgrade PostgreSQL from an ancient version?
Список pgsql-general
"Dann Corbit" <DCorbit@connx.com> writes:
> My notion is to do a character mode database dump as SQL statements and
> then load into the new version by execution of psql against the sql
> STATEMENTS.
> What are the "gotchas" we can expect with this approach?
> When I say 'ancient' I mean v7.1.3 and the target is v8.3.5.

Yoi, that is a long way.  As already noted, you should use the 8.3
version of pg_dump to pull the data from the old server; this should
smooth some of the bumps, but there will be more.

Also, experiment with using the -d or -D options to pg_dump (ie
dump data via INSERT not COPY) if you have problems.  I forget exactly
when we got rid of the last risk factors for COPY-style dumps, but it
might've been after 7.1.  This'll be slower though.

I don't have too much else to add to what was already said, except
to reinforce the advice to test your applications before you do the live
migration.  You're almost certain to hit some compatibility issues.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: The difference between RESTRICT and NO ACTION
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: What is the best plan to upgrade PostgreSQL from an ancient version?