Re: Backup of users and groups?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Backup of users and groups?
Дата
Msg-id 7312.1078935694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Backup of users and groups?  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: Backup of users and groups?  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Dave Cramer <pg@fastcrypt.com> writes:
> You should do a pg_dump all of your database(s) if you want to restore
> them on to a 7.4 instance.

> At a minimum, do a pg_dump -s db for the schema, I believe it will dump
> the users and groups.

No, pg_dump only dumps what is in a single database.  Users and groups
span all databases in a cluster, so they are outside the purview of
pg_dump.  You *must* use pg_dumpall to dump user and group info.

There is an option to pg_dumpall to dump only this info, and not invoke
pg_dump on each individual database as it normally would do.

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Upgrading from 7.3.4 til 7.4.x?
Следующее
От: Richard Bottoms
Дата:
Сообщение: Re: two dimensional arrays supported?