Re: Permissions pg_dump / import

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Permissions pg_dump / import
Дата
Msg-id 17544.1471916474@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Permissions pg_dump / import  (Patrick B <patrickbakerbr@gmail.com>)
Список pgsql-general
Patrick B <patrickbakerbr@gmail.com> writes:
> I'm doing a pg_dump and a pg_restore on the same command, using different
> usernames and databases names.:
> ...
> But I'm getting some permissions errors:
> could not execute query: ERROR:  role "devel" does not exist

If that's from

> REVOKE ALL ON SCHEMA public FROM devel;

it's not a permissions error, it's complaining there's no such role
to grant/revoke from in the destination DB.  You may want to use
--no-privileges along with --no-owner if the destination doesn't
have the same set of users as the source.  Or just ignore these errors.

            regards, tom lane


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

Предыдущее
От: Patrick B
Дата:
Сообщение: Re: Permissions pg_dump / import
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Unique constraint on field inside composite type.