Re: exploring data

Поиск
Список
Период
Сортировка
От Willie Northway
Тема Re: exploring data
Дата
Msg-id Pine.LNX.4.10.10106271719010.3094-100000@spiderman.diamondbullet.com
обсуждение исходный текст
Ответ на exploring data  (Willie Northway <willn@diamondbullet.com>)
Ответы Re: Re: exploring data  (Nabil Sayegh <nsmail@sayegh.de>)
Список pgsql-novice
After some digging in the source code, namely this file:
"src/bin/psql/describe.c" -> I've found the "real" SQL commands
which the backslash commands use:

to list databases:
\list or \l or
SELECT datname FROM pg_database WHERE datname !~ '^template';

to list tables in the currently used database:
\d or
SELECT relname FROM pg_class WHERE relname!~ '^pg_';

- Willie

----
Willie Northway - Software Developer http://www.willienorthway.com/
Diamond Bullet Design - http://www.diamondbullet.com


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

Предыдущее
От: Willie Northway
Дата:
Сообщение: Re: exploring data
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: Re: exploring data