pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: pgmoscatt@optushome.com.au
Cc: \"PostgreSQL [INTERFACES] \" List <pgsql-interfaces@postgresql.org>
Subject: Re: Writing code to list Databases ?
Date: Sat, 23 Aug 2003 18:56:50 -0700
Message-ID: <3F481B62.1000303@joeconway.com> (raw)
In-Reply-To: <1061690111.1917.1.camel@localhost>
References: <1061690111.1917.1.camel@localhost>

Peter Moscatt wrote:
> Are there routines that allow me to list databases within PostGres ?
> 

 From a shell prompt, use `psql -l`. The SQL command is:
   select datname from pg_database;

HTH,

Joe





view thread (2+ messages)

Message-ID: <3F481B62.1000303@joeconway.com>
Permalink:  ../3F481B62.1000303@joeconway.com/
Also on:    postgresql.org/message-id/3F481B62.1000303@joeconway.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-interfaces@postgresql.org
  Cc: mail@joeconway.com, pgmoscatt@optushome.com.au
  Subject: Re: Writing code to list Databases ?
  In-Reply-To: <3F481B62.1000303@joeconway.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