Re: How to list and remove a user in postgres ? - Mailing list pgsql-general

From Yves Dorfsman
Subject Re: How to list and remove a user in postgres ?
Date
Msg-id Jjvb5.73871$ef6.989161@news1.rdc1.ab.home.com
Whole thread Raw
In response to Re: How to list and remove a user in postgres ?  (HomerWelch <hjwxxx@home.com>)
List pgsql-general
HomerWelch <hjwxxx@home.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@cuug.ab.ca
                                         http://www.cuug.ab.ca/~dorfsmay

pgsql-general by date:

Previous
From: Yves Dorfsman
Date:
Subject: Re: How to remove a user ?
Next
From: Tom Lane
Date:
Subject: Re: Load fails