Suppose I create a table in Postgresql with a comment on a column:
create table t1 ( c1 varchar(10) ); comment on column t1.c1 is \'foo\';
You can retrieve comments on columns using the system function col_description(table_oid, column_number). See this page for further details.