Re: 'show databases' in psql way?

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: 'show databases' in psql way?
Дата
Msg-id 1d581afe041101042611fd649c@mail.gmail.com
обсуждение исходный текст
Ответ на 'show databases' in psql way?  (Erik Wasser <erik.wasser@iquer.net>)
Ответы Re: 'show databases' in psql way?
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Frank Bax
Дата:
Сообщение: Re: 'show databases' in psql way?
Следующее
От: Erik Wasser
Дата:
Сообщение: Re: 'show databases' in psql way?