Re: Custom type
От | george young |
---|---|
Тема | Re: Custom type |
Дата | |
Msg-id | 20060324150703.5254c23f.gry@ll.mit.edu обсуждение исходный текст |
Ответ на | Re: Custom type (Bryce Nesbitt <bryce1@obviously.com>) |
Ответы |
Re: Custom type
|
Список | pgsql-sql |
On Wed, 22 Mar 2006 13:07:33 -0800 Bryce Nesbitt <bryce1@obviously.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 relationsSchema | Name | Type | Owner | Description --------+--------------------------+-------+----------+-------------public | fffg | table | postgres| the rainpublic | 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)
В списке pgsql-sql по дате отправления: