Comments on columns?

Поиск
Список
Период
Сортировка
Искать

Comments on columns?

От:
Michael Davis <michael.davis@prevuenet.com>
Дата:
Are there any plans to have psql support comments on columns?  For example,
I would like to be able to add a comment on a column of a table and have \dd
display the table comment in addition to any/all column comments.  

Thanks, Michael

Re: [GENERAL] Comments on columns?

От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
> Are there any plans to have psql support comments on columns?  For example,
> I would like to be able to add a comment on a column of a table and have \dd
> display the table comment in addition to any/all column comments.  

Find the oid of the column in pg_attribute, and insert into pg_description.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
FAQ