Re: New/Custom DataType - Altering definition / seeing definition in pgAdmin3 - Mailing list pgsql-general

From Roberto Spier
Subject Re: New/Custom DataType - Altering definition / seeing definition in pgAdmin3
Date
Msg-id 46EEE382.5080205@conab.gov.br
Whole thread Raw
In response to New/Custom DataType - Altering definition / seeing definition in pgAdmin3  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Responses Re: New/Custom DataType - Altering definition / seeing definition in pgAdmin3
List 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



pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: creation of tables with warnings
Next
From: "Laimonas Simutis"
Date:
Subject: Re: processing urls with tsearch2