pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Caune <daniel.caune@ubisoft.com>
To: Terry Lee Tucker <terry@esc1.com>
To: pgsql-sql@postgresql.org
Subject: Re: Custom type
Date: Wed, 22 Mar 2006 16:10:30 -0500
Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org> (raw)



> > Hi,
> >
> > How can I enter description for my custom types?
> >
> > \dT provides information such as schema, name, and description for
all
> > the registered types and custom types.  I would like to provide a
> > description for each custom type I create.
> >
> > Thanks,
> >
> >
> > --
> > Daniel CAUNE
> > Ubisoft Online Technology
> > (514) 4090 2040 ext. 5418
> >
> 
> Daniel,
> 
> From the \h command in psql:
> 
> rnd=# \h comment
> Command:     COMMENT
> Description: define or change the comment of an object
> Syntax:
> COMMENT ON
> {
>   TABLE object_name |
>   COLUMN table_name.column_name |
>   AGGREGATE agg_name (agg_type) |
>   CONSTRAINT constraint_name ON table_name |
>   DATABASE object_name |
>   DOMAIN object_name |
>   FUNCTION func_name (arg1_type, arg2_type, ...) |
>   INDEX object_name |
>   OPERATOR op (leftoperand_type, rightoperand_type) |
>   RULE rule_name ON table_name |
>   SCHEMA object_name |
>   SEQUENCE object_name |
>   TRIGGER trigger_name ON table_name |
>   TYPE object_name |
>   VIEW object_name
> } IS 'text'
> 
> I believe this is what you need.
> 
> HTH.
> 

I see!  I was searching an option in the custom type creation statement,
something like:

  CREATE TYPE foo (
    ...
  )
  DESCRIPTION "something that might be useful";

Thanks for this information!

--
Daniel



view thread (6+ messages)  latest in thread

Message-ID: <1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org>
Permalink:  ../1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org/
Also on:    postgresql.org/message-id/1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: daniel.caune@ubisoft.com, terry@esc1.com
  Subject: Re: Custom type
  In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org>
  References: <1E293D3FF63A3740B10AD5AAD88535D201D6557C@UBIMAIL1.ubisoft.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox