Re: How to list and remove a user in postgres ?

From: Yves Dorfsman <x(at)x(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to list and remove a user in postgres ?
Date: 2000-07-14 02:56:41
Message-ID: Jjvb5.73871$ef6.989161@news1.rdc1.ab.home.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HomerWelch <hjwxxx(at)home(dot)com> wrote:

> (\h createuser.) I don't recall a method for listing all
> users.

man psql

has a lot of good information.

Log in as postgres (or whoever is your postgres super user), then run
psql, and:

\dS

Will give you a list of the system tables (relations).

\dS pg_user

Will give you the structure of that table, and actually some more help.

SELECT usename, usesuper from pg_shadow;

Will give you a list of the users that are define, and indicate which one
is the super user.

Yves.
----
Yves Dorfsman dorfsmay(at)cuug(dot)ab(dot)ca
http://www.cuug.ab.ca/~dorfsmay

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-07-14 04:55:10 Re: Load fails
Previous Message Yves Dorfsman 2000-07-14 02:45:59 Re: How to remove a user ?