pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Keller <kkeller-postgres@wombat.san-francisco.ca.us>
To: pgsql-sql@postgresql.org
Subject: Re: SQL to list databases?
Date: Thu, 23 Jan 2003 14:43:41 -0800
Message-ID: <20030123224341.GA7721@wombat.san-francisco.ca.us> (raw)
In-Reply-To: <3E303AF2.10603@cms-stl.com>
References: <81132473206F3A46A72BD6116E1A06AE1B14CC@black.aprote.com>
	<26610.1043341252@sss.pgh.pa.us>
	<3E303AF2.10603@cms-stl.com>

On Thu, Jan 23, 2003 at 12:56:50PM -0600, Ben Siders wrote:
> 
> Is there a query that will return all the databases available, similar 
> to what psql -l does?

Any time you wish to know what psql is doing with ''meta'' commands
(like the \ commands), use the -E switch, which will display the queries
it's sending to the backend.  man psql for more details.

--keith

-- 
kkeller@speakeasy.net
public key:  http://wombat.san-francisco.ca.us/kkeller/kkeller.asc
alt.os.linux.slackware FAQ:  http://wombat.san-francisco.ca.us/cgi-bin/fom




view thread (8+ messages)  latest in thread

Message-ID: <20030123224341.GA7721@wombat.san-francisco.ca.us>
Permalink:  ../20030123224341.GA7721@wombat.san-francisco.ca.us/
Also on:    postgresql.org/message-id/20030123224341.GA7721@wombat.san-francisco.ca.us

 · 

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: kkeller-postgres@wombat.san-francisco.ca.us
  Subject: Re: SQL to list databases?
  In-Reply-To: <20030123224341.GA7721@wombat.san-francisco.ca.us>

* 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