Re: copy users/groups

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: copy users/groups
Дата
Msg-id 50EC3A65.6080203@gmail.com
обсуждение исходный текст
Ответ на copy users/groups  ("Edward W. Rouse" <erouse@comsquared.com>)
Список pgsql-sql
On 01/08/2013 07:08 AM, Edward W. Rouse wrote:
> We have a database that was updated from 7.4.1 to 9.1.3. I've gotten
> everything working, but now it seems that the users and groups weren't
> restored. Probably because they weren't backed up. Is there a way to dump
> just the users and groups, plus the passwords and permissions, and restore
> them without overwriting what's been manually added to the new database?

Users/groups i.e roles are global to a cluster, you need to use pg_dumpall:

http://www.postgresql.org/docs/9.1/interactive/app-pg-dumpall.html

pg_dumpall -g

Will dump only the global items.

>
>
> Edward W. Rouse
>
>
>


-- 
Adrian Klaver
adrian.klaver@gmail.com



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

Предыдущее
От: "Edward W. Rouse"
Дата:
Сообщение: copy users/groups
Следующее
От: Emi Lu
Дата:
Сообщение: How to generate drop cascade with pg_dump