Re: Table and Field Schemas

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Table and Field Schemas
Дата
Msg-id 41AAEFFE.8050508@archonet.com
обсуждение исходный текст
Ответ на Table and Field Schemas  (Adam Ernst <adam1234@athenet.net>)
Список pgsql-general
Adam Ernst wrote:
> How can I get the table schema for a database or the field schema for a
> table? I'm connected remotely via a socket, so I can't just dump it an
> inspect the result.
>
> Even if I could just verify the existence of a table/field, that would
> work.

If you start psql with the -E flag then \d etc will show the queries
they send.

You might also want to consider looking at the information_schema schema
which provides a standardised view of database structure.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Nageshwar Rao
Дата:
Сообщение: tool for postgresql
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Triggers