pg_dumpall and tablespaces

Поиск
Список
Период
Сортировка
От Joao Miguel Ferreira
Тема pg_dumpall and tablespaces
Дата
Msg-id CALyyT7R8NcVvazqF_-Xg4EkUM9KYAkmGBUv_NXA2TFZox9rGnw@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_dumpall and tablespaces  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hello all,

I have a dump file obtained from pg_dumpall on a MAC computer. I need to load in onto my Linux laptop running postgres.

My scenario is software development. I'm trying to load the dump onto my Pg installation running on Linux (and later possibly on Linux over Docker) in order to perform my sw development against a fresh copy of the data.

I got 2 problems concerning tablespaces:
a) during the restore step I get lots of errors about the necessity to have root permissions to re-create the tablespaces and
b) the tablespaces paths on the dump file are bound to the MAC filesystem (/Users/..../pg/....). I would need to re-write that path to my home folder or '/var/lib/....'

Obviously I'm a bit confused on how to do this.

pg_dumpall is very powerfull and simple, specially when using the "--create" option that does all the work for me.

I would appreciate any directions on how to restore that dump

thank you
Joao

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: permission denied for large object 200936761
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_dumpall and tablespaces