How can I select a comment on a column?

Поиск
Список
Период
Сортировка
От Serguei Pronkine
Тема How can I select a comment on a column?
Дата
Msg-id 4607DAC7.7050503@krikri.de
обсуждение исходный текст
Ответы Re: How can I select a comment on a column?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Hi community,
I'd like to retrieve comments on tables an columns by table name and
column name. The posting by Tom Lane <tgl ( at ) sss ( dot ) pgh ( dot )
pa ( dot ) us>
http://archives.postgresql.org/pgsql-novice/2004-01/msg00180.php?adv=1
says how to select comment on a column.

regression=# create table mytab (mycol int);
CREATE TABLE
regression=# comment on column mytab.mycol is 'my comment';
COMMENT
regression=# select col_description('mytab'::regclass, 1);
  col_description
-----------------
  my comment
(1 row)


How can I now retrieve column number from column name?

Thanks in advance,
Serguei Pronkine

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

Предыдущее
От: "Sorin N. Ciolofan"
Дата:
Сообщение: ERROR: out of shared memory
Следующее
От: ptjm@interlog.com (Patrick TJ McPhee)
Дата:
Сообщение: Re: Check the existance of temporary table