Re: New/Custom DataType - Altering definition / seeing definition in pgAdmin3

From: Roberto Spier <roberto(dot)spier(at)conab(dot)gov(dot)br>
To: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: New/Custom DataType - Altering definition / seeing definition in pgAdmin3
Date: 2007-09-17 20:28:50
Message-ID: 46EEE382.5080205@conab.gov.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ow Mun Heng escreveu:
> I've created a new custom datatype
>
> eg:
>
> create type foo as (
> id smallint
> data1 int
> data2 int
> )
>
> to view the datatype in psql I do
> => \d foo
>
> what is the equilvalent on pgadmin3 or any other SQL query tool?
>
>
Within pgAdmin3: File > Option > Display tab > set Types
> As i understand from the docs, I can't alter / change the datatype
> definition. If I need to change it, I need to drop it and re-create it
> again. Correct me if I'm wrong.
>
>
Correct. pgAdmin3 will be your friend, as it shows a commented out drop
type instruction within eery create type script.

HTH

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laimonas Simutis 2007-09-17 20:42:12 Re: processing urls with tsearch2
Previous Message Scott Marlowe 2007-09-17 18:40:11 Re: creation of tables with warnings