Re: How to list databases with SQL statement? - Mailing list pgsql-general

From Quinton Delpeche
Subject Re: How to list databases with SQL statement?
Date
Msg-id 200411230652.45353.quintond@vippayroll.co.za
Whole thread Raw
In response to How to list databases with SQL statement?  (Marian D Marinov <hackman@hydra.azilian.net>)
List pgsql-general
On Saturday 20 November 2004 02:39, Marian D Marinov wrote:
> Hello,
> Is there a way to list all databases which belong to the current user with
> an SQL query?

I am not sure about a SQL Query.

But if you login to the database using the command line psql interface and run

\l

it will give you output similar to this:

intsys=> \l
        List of databases
   Name    |  Owner   | Encoding
-----------+----------+-----------
 intsys    | intsys   | SQL_ASCII
 template0 | postgres | SQL_ASCII
 template1 | postgres | SQL_ASCII
(3 rows)

intsys=>

Not sure if this will help you.

> Regards M.Marinov

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:    +27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Anarchy may not be the best form of government, but it's better than no
government at all.

Attachment

pgsql-general by date:

Previous
From: Bill Harris
Date:
Subject: Re: How to make a good documentation of a database ?
Next
From: Michael Fuhr
Date:
Subject: Re: How to list databases with SQL statement?