Re: list databases with SQL command

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: list databases with SQL command
Дата
Msg-id 41ECF157.5080907@archonet.com
обсуждение исходный текст
Ответ на list databases with SQL command  (David Teran <david.teran@cluster9.com>)
Список pgsql-general
David Teran wrote:
> Hi,
>
> maybe its a silly question, but is there a way to list all databases
> with an SQL command? I know about the \l command from psql, but i wonder
> if such things are possible with SQL.

Look into the pg_class table or the information schema.
Also, if you start psql with -E then you can see how it executes all its
  backslash commands.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: list databases with SQL command
Следующее
От: Antony Paul
Дата:
Сообщение: What is xmin ?