Re: migrating data from an old postgres version

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: migrating data from an old postgres version
Дата
Msg-id CANu8FiwLUMKJhGqxyjrv+gGfwn=qeJWrToMUdtUtOgswiQaEuw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: migrating data from an old postgres version  (Willy-Bas Loos <willybas@gmail.com>)
Ответы Re: migrating data from an old postgres version  (Willy-Bas Loos <willybas@gmail.com>)
Список pgsql-general


On Fri, Jul 15, 2016 at 10:07 AM, Willy-Bas Loos <willybas@gmail.com> wrote:

On Fri, Jul 15, 2016 at 3:55 PM, Melvin Davidson <melvin6925@gmail.com> wrote:

Why can't he just do a
pg_dump -F p his_dbname > his_dbname.sql
Then copy dbname.sql to a jump/thumb drive on the old laptop
copy the data from the jump/thumb drive to the new laptop
create the new db in 9.5
and use pg_restore to load the his_dbname.sql ?

Because it's not the same version, so that will cause some errors.
But i guess we should be able to live with that.
Thanks, i guess i was thinking a bit too rigid.

Cheers,
--
Willy-Bas Loos

If you dump with -F p (plain is default) then the version does not matter.
That is the recommended method for upgrading from older versions.
https://www.postgresql.org/docs/9.4/static/upgrading.html

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

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

Предыдущее
От: Tim Smith
Дата:
Сообщение: Re: Merging timeseries in postgres
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: Re: migrating data from an old postgres version