Sunday, August 19, 2012

Add comments to tables and columns with PostgreSQL

create table some_table(
  some_column int
);
comment on table some_table is 'some table comment';

comment on column some_table.some_column is 'some column comment';