Re: migrating data from an old postgres version

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: migrating data from an old postgres version
Дата
Msg-id 92126664-c05c-df02-46e8-112d3239c353@aklaver.com
обсуждение исходный текст
Ответ на Re: migrating data from an old postgres version  (Melvin Davidson <melvin6925@gmail.com>)
Ответы Re: migrating data from an old postgres version  (Willy-Bas Loos <willybas@gmail.com>)
Список pgsql-general
On 07/15/2016 07:22 AM, Melvin Davidson wrote:
>
> On Fri, Jul 15, 2016 at 10:19 AM, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
>
>     On 07/15/2016 07:07 AM, Willy-Bas Loos wrote:
>
>
>         On Fri, Jul 15, 2016 at 3:55 PM, Melvin Davidson
>         <melvin6925@gmail.com <mailto:melvin6925@gmail.com>
>         <mailto:melvin6925@gmail.com <mailto: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.
>
>
>     pg_dump is backwards compatible to version 7.0.
>
>
>         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
>
>
>
>     --
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
>
> As Adrian and I have said, pg_dump and pg_dumpall as backwards
> compatible and the recommended method for porrting data from one version
> to another. You will NOT get errors if you use plain format.

Remember you can reconstitute a plain format dump from a custom format
dump by doing:

pg_restore ... -f plain_sql.txt custom_dump.out

Not sure what errors you are talking about?

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


--
Adrian Klaver
adrian.klaver@aklaver.com


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

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