Re: Notes or comments on columns in a table - Mailing list pgsql-admin

From Campbell, Lance
Subject Re: Notes or comments on columns in a table
Date
Msg-id B75CD08C73BD3543B97E4EF3964B7D701F15BE5B@CITESMBX1.ad.uillinois.edu
Whole thread Raw
In response to Re: Notes or comments on columns in a table  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-admin
I got it to work!  You use the COMMENT in conjunction with \d+.  Very nice.

PostgreSQL Development Team,
Thank you so much for having the COMMENT feature in PostgreSQL.  This is great!


Thanks,

Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382




-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Thomas Kellerer
Sent: Thursday, February 14, 2013 2:10 PM
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Notes or comments on columns in a table

Campbell, Lance wrote on 14.02.2013 20:09:
> PostgreSQL 9.2
>
> When creating a table or altering a column of a table, is there a way
> to add notes on a column?
>

comment on table foo is 'the foo table'; comment on column foo.bar is 'the bar column';

http://www.postgresql.org/docs/current/static/sql-comment.html



--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


pgsql-admin by date:

Previous
From: Craig James
Date:
Subject: Re: Notes or comments on columns in a table
Next
From: Qingbo Zhou
Date:
Subject: ANALYZE estimates very wrong reltuples