Re: How to restore roles into new Database server?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: How to restore roles into new Database server?
Дата
Msg-id 315ff3e5-dbab-fc10-7278-a7c6b13bbc5e@aklaver.com
обсуждение исходный текст
Ответ на How to restore roles into new Database server?  (Sridhar Parepalli <Sridhar.Parepalli@sas.com>)
Ответы RE: How to restore roles into new Database server?  (Sridhar Parepalli <Sridhar.Parepalli@sas.com>)
Список pgsql-general
On 9/15/21 6:53 AM, Sridhar Parepalli wrote:
> Hello Pros,
> Is there a quick way to create roles from database server to another db server?

pg_dumpall -g the_database -f globals.sql

psql -d other_database -f globals.sql

Though this will include other global objects e.g. tablespaces.

See:

https://www.postgresql.org/docs/current/app-pg-dumpall.html

> Regards,
> Sridhar Parepalli
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Ninad Shah
Дата:
Сообщение: Re: How to restore roles into new Database server?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Basic Questions about PostgreSQL.