Copy Users?

Started by James Hallover 23 years ago3 messagesgeneral
Jump to latest
#1James Hall
James.Hall@RadioShack.com

<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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: James Hall (#1)
Re: 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

#3James Hall
James.Hall@RadioShack.com
In reply to: Tom Lane (#2)
Re: Copy Users?

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