Re: How to view user defined TYPE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Goboxe <hadzramin(dot)ar(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to view user defined TYPE
Date: 2008-10-22 17:35:34
Message-ID: 10102.1224696934@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Goboxe <hadzramin(dot)ar(at)gmail(dot)com> writes:
>> Let say I created a new type:
>> CREATE TYPE compfoo AS (f1 int, f2 text);
>> How can I view its definition?

In psql, \d works:

regression=# CREATE TYPE compfoo AS (f1 int, f2 text);
CREATE TYPE
regression=# \d compfoo
Composite type "public.compfoo"
Column | Type
--------+---------
f1 | integer
f2 | text

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message George Pavlov 2008-10-22 17:39:04 Re: How to get schema name which violates fk constraint
Previous Message Merlin Moncure 2008-10-22 17:35:20 Re: text array accumulate to multidimensional text array