From: Ian Barwick <barwick@gmail.com>
To: Erik Wasser <erik.wasser@iquer.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: 'show databases' in psql way?
Date: Mon, 1 Nov 2004 13:26:56 +0100
Message-ID: <1d581afe041101042611fd649c@mail.gmail.com> (raw)
In-Reply-To: <200411011313.10872.erik.wasser@iquer.net>
References: <200411011313.10872.erik.wasser@iquer.net>
On Mon, 1 Nov 2004 13:13:10 +0100, Erik Wasser <erik.wasser@iquer.net> 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?
Start psql with the -E switch, and it shows the SQL used to generate
the output from psql's slash commands.
Ian Barwick
barwick@gmail.com
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: barwick@gmail.com, erik.wasser@iquer.net
Subject: Re: 'show databases' in psql way?
In-Reply-To: <1d581afe041101042611fd649c@mail.gmail.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