Re: Notes or comments on columns in a table

From: "Campbell, Lance" <lance(at)illinois(dot)edu>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Notes or comments on columns in a table
Date: 2013-02-15 15:07:22
Message-ID: B75CD08C73BD3543B97E4EF3964B7D701F15BE5B@CITESMBX1.ad.uillinois.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Thomas Kellerer
Sent: Thursday, February 14, 2013 2:10 PM
To: pgsql-admin(at)postgresql(dot)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(at)postgresql(dot)org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Qingbo Zhou 2013-02-20 09:13:34 ANALYZE estimates very wrong reltuples
Previous Message Craig James 2013-02-15 03:38:35 Re: Notes or comments on columns in a table