Re: seeing type defination.. - Mailing list pgsql-sql

From Tom Lane
Subject Re: seeing type defination..
Date
Msg-id 20003.1052403284@sss.pgh.pa.us
Whole thread Raw
In response to seeing type defination..  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Responses Re: seeing type defination..
List pgsql-sql
Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> psql> CREATE TYPE mytype AS (a1 int, a2 varchar(100)) ;

> is there any way to see the constitution of "mytype"
> at a later date?

regression=#  CREATE TYPE mytype AS (a1 int, a2 varchar(100)) ;
CREATE TYPE
regression=# \d mytypeComposite type "public.mytype"Column |          Type
--------+------------------------a1     | integera2     | character varying(100)

regression=#
        regards, tom lane



pgsql-sql by date:

Previous
From: Bryan Klimt
Date:
Subject: insert rowtype
Next
From: Stephan Szabo
Date:
Subject: Re: "too clever" when creating SQL functions