Re: How to retrieve a comment/description from a table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to retrieve a comment/description from a table
Дата
Msg-id 27148.1030116153@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to retrieve a comment/description from a table  (Marcus Claesson <marcus.claesson@angiogenetics.se>)
Список pgsql-general
Marcus Claesson <marcus.claesson@angiogenetics.se> writes:
> What I wish is to retrieve the comment with a sql question, which would work
> if the '\d+ information' could be found in an actual table somewhere.

The descriptions are kept in pg_description.  Although you can just do
"select from pg_description", the recommended retrieval method is the
obj_description() function.  See
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/functions-misc.html
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/catalog-pg-description.html

            regards, tom lane

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

Предыдущее
От: Christoph Dalitz
Дата:
Сообщение: alter table ad primary key
Следующее
От: "Peter Gibbs"
Дата:
Сообщение: Re: How to retrieve a comment/description from a table