From: | george young <gry(at)ll(dot)mit(dot)edu> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Custom type |
Date: | 2006-03-24 20:07:03 |
Message-ID: | 20060324150703.5254c23f.gry@ll.mit.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, 22 Mar 2006 13:07:33 -0800
Bryce Nesbitt <bryce1(at)obviously(dot)com> threw this fish to the penguins:
> Terry Lee Tucker wrote:
> > rnd=# \h comment
> > Command: COMMENT
> > Description: define or change the comment of an object
> > ..I believe this is what you need.
> >
> Cool!
> That's a great feature. Though it would be even nicer if the comment
> showed when
> you "\d" a table::
Hmm, it does(in 8.1.0) if you just say "\d+" without an argument:
newschm3=# comment on table fffg is 'the rain';
newschm3=# \d+
List of relations
Schema | Name | Type | Owner | Description
--------+--------------------------+-------+----------+-------------
public | fffg | table | postgres | the rain
public | group_run_limit | table | postgres |
public | hold_log | table | postgres |
...
But not if you specify the object:
newschm3=# \d+ fffg
Table "public.fffg"
Column | Type | Modifiers | Description
--------+---------+-----------+-------------
t | text | |
i | integer | |
This seems a bit like a bug to me...
-- George Young
> stage=# comment on table db_version is 'Managed in nautilus.xml';
> stage=# \d db_version
>
> Table "public.db_version"
> Column | Type | Modifiers
> ---------+-----------------------+-----------
> version | character varying(64) |
>
>
> stage=# \dd db_version
>
> Object descriptions
> Schema | Name | Object | Description
> --------+------------+--------+-------------------------
> public | db_version | table | Managed in nautilus.xml
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
--
"Are the gods not just?" "Oh no, child.
What would become of us if they were?" (CSL)
From | Date | Subject | |
---|---|---|---|
Next Message | Amos Hayes | 2006-03-24 20:19:38 | Find min and max values across two columns? |
Previous Message | D'Arcy J.M. Cain | 2006-03-24 18:42:44 | Re: Question about One to Many relationships |