Re: [SQL] Question about comments

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: gordonc(at)cyberbiz(dot)net(dot)au, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Question about comments
Date: 1999-08-24 04:07:52
Message-ID: 199908240407.AAA16014@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Gordon Clarke <gordonc(at)cyberbiz(dot)net(dot)au> writes:
> > I'm running Postgresql 6.3.2.
>
> > When ones gets help on the built-in commands that start with '\' there is
> > a command '\dd [object]'. In the comments is says that it lists the
> > comment for the object, eg. table, field etc.
>
> > Is this command operative under 6.3.2? If so, how does one get the
> > comment(s) into those objects? The '\h create table' etc gives no idea.
> > Also which of the system tables (pg_?) are these comments written to?
>
> pg_description, I believe. AFAIK there's no special support for adding
> entries to it :-(. You can insert entries manually, but it'd be nicer
> to have some kind of specialized command for that...

Yes, that is on the TODO list. Currently, the initdb command pulls
hard-coded comments out of the include/catalog/*.h files, and loads them
in indexed on oid. You can add your own.

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-08-24 04:24:28 Re: [SQL] Expression with aggregate
Previous Message Scott Barron 1999-08-23 22:28:23 Re: [SQL] Expression with aggregate