From: | "Arash Zaryoun" <Arash_Zaryoun(at)CBC(dot)CA> |
---|---|
To: | <lorid(at)dri(dot)edu>, <achill(at)matrix(dot)gatewaynet(dot)com> |
Cc: | <erik(dot)wasser(at)iquer(dot)net>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: 'show databases' in psql way? |
Date: | 2004-11-02 15:03:40 |
Message-ID: | s187637a.027@cbc.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
in command line: psql template1 pgsql -l
in PSQL:
foodb=#> select datname from pg_database;
- Arash
>>> Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> 11/2/2004 10:21:06 AM >>>
O lorid ****** **** Nov 2, 2004 :
> \z will list the tables in the dbase
> \d tablename will list the columns in the table
>
or
foodb=# SELECT oid,* from pg_database ;
> ---------------------
> Erik Wasser wrote:
>
> >Hi list,
> >
> >how can I list the databases in a postgresish way? I know about the '-l'
> >switch of 'psql' but is there a DBI/SQL-query way? I don't want to call
> >an external program only to list the databases. I've googled about this
> >problem but I only found the '-l'-way to this this.
> >
> >Ideas? Solutions?
> >
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
--
-Achilleus
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
From | Date | Subject | |
---|---|---|---|
Next Message | Markus Schaber | 2004-11-02 15:20:37 | Re: Update instead rules on Views |
Previous Message | lorid | 2004-11-02 14:24:02 | Re: 'show databases' in psql way? |