listing users and their rights
as a pgsql superuser, how can i list all the users and their rights? on
mysql i just do a select on the mysql table. i'm a newbie here. i read the
documents and didn't find the answer.
also, when i start 'psql' as system user joe, it says:
psql: FATAL 1: Database "joe" does not exist in the system catalog.
if i run psql as system user XXX it would say '... Database "XXX" does not
exist...'
from the documents, it seems as though i can start psql without specifying
a database.
Thomas T. Thai writes:
as a pgsql superuser, how can i list all the users and their rights?
SELECT * FROM pg_user;
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
"Thomas T. Thai" wrote:
also, when i start 'psql' as system user joe, it says:
psql: FATAL 1: Database "joe" does not exist in the system catalog.
if i run psql as system user XXX it would say '... Database "XXX" does not
exist...'from the documents, it seems as though i can start psql without specifying
a database.
If you don't specify the database, psql defaults to a database named by your
own login name. If you want to connect to any other database, do
`psql -d database'.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Give to him that asketh thee, and from him that would
borrow of thee turn not away."
Matthew 5:42