Обсуждение: Copy Users?

Поиск
Список
Период
Сортировка

Copy Users?

От
James Hall
Дата:
<Resending to General due to no response on Novice list>

Is there anyway to transfer the pg_user/pg_shadow data from one to database
to another without a dumpall?

TIA-
-jim

Re: Copy Users?

От
Tom Lane
Дата:
James Hall <James.Hall@RadioShack.com> writes:
> Is there anyway to transfer the pg_user/pg_shadow data from one to database
> to another without a dumpall?

pg_dumpall has a switch to just dump the user/group info, and not the
databases.  Seems like that will do what you want.

            regards, tom lane

Re: Copy Users?

От
James Hall
Дата:
I am not able to use pg_dumpall, the system has crashed and I only have read
access to the harddrives. I was hoping there would be a couple of files I
could copy over to the new database and get the users back<?>.

Thanks,
-jim


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, September 17, 2002 5:29 PM
To: James Hall
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Copy Users?


James Hall <James.Hall@RadioShack.com> writes:
> Is there anyway to transfer the pg_user/pg_shadow data from one to
database
> to another without a dumpall?

pg_dumpall has a switch to just dump the user/group info, and not the
databases.  Seems like that will do what you want.

            regards, tom lane