Skip site navigation (1) Skip section navigation (2)

Re: copying pg_user?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James Hall <James(dot)Hall(at)RadioShack(dot)com>
Cc: pgsql-novice(at)hub(dot)org
Subject: Re: copying pg_user?
Date: 2000-08-01 21:45:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
James Hall <James(dot)Hall(at)RadioShack(dot)com> writes:
> My question is what is the easiest/best/safest way to copy the pg_user file
> from db to another?

pg_user is a view.  You can copy pg_shadow if you are so inclined.
See the pg_dumpall script, which does exactly that before dumping
the database(s) proper.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Chau, ArtemisDate: 2000-08-01 21:46:51
Subject: count(distinct col)
Previous:From: James HallDate: 2000-08-01 20:51:07
Subject: copying pg_user?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group