Re: [SQL] Question about comments - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Question about comments
Date
Msg-id 199908240407.AAA16014@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] Question about comments  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
> Gordon Clarke <gordonc@cyberbiz.net.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@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [SQL] Expression with aggregate
Next
From: Stanley Morgan
Date:
Subject: bytea