pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: lorid <lorid@dri.edu>
Cc: Erik Wasser <erik.wasser@iquer.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: 'show databases' in psql way?
Date: Tue, 2 Nov 2004 17:21:06 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0411021719450.3790-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <41879882.6000506@dri.edu>

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




view thread (9+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0411021719450.3790-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0411021719450.3790-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0411021719450.3790-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, lorid@dri.edu, erik.wasser@iquer.net
  Subject: Re: 'show databases' in psql way?
  In-Reply-To: <Pine.LNX.4.44.0411021719450.3790-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox