Re: How do I list all users and all databases.

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do I list all users and all databases.
Date: 2002-04-15 13:18:29
Message-ID: Pine.LNX.4.21.0204151416290.20382-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 8 Apr 2002, MattStan wrote:

> Hi everyone,
>
> During testing of my postgresql install I created several users and
> databases, now I can't remember exactly what I added. Can someone kindly
> tell me how to list all user names and all databases, I can't seem to
> work out how to do this. Thanks for your help.

In psql use \l to get the list of databases and SELECT * FROM pg_user; to get
user information.

--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Roberto Mello 2002-04-15 13:20:21 Re: Oid and Oid Vector
Previous Message Marin Dimitrov 2002-04-15 08:40:10 (repost) Invalid Unicode character