Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 946B6633209 for ; Sun, 29 Mar 2009 23:45:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 12358-08 for ; Sun, 29 Mar 2009 23:44:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id D0A7763219E for ; Sun, 29 Mar 2009 23:45:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n2U2j1rm010199; Sun, 29 Mar 2009 22:45:01 -0400 (EDT) To: Manal Helal cc: pgsql-admin@postgresql.org Subject: Re: forgot the structure of a composite type In-reply-to: <131b56be0903291940j4c726abcgc0ae79a3d458fbec@mail.gmail.com> References: <131b56be0903291940j4c726abcgc0ae79a3d458fbec@mail.gmail.com> Comments: In-reply-to Manal Helal message dated "Mon, 30 Mar 2009 13:40:29 +1100" Date: Sun, 29 Mar 2009 22:45:01 -0400 Message-ID: <10198.1238381101@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL=0.015 X-Spam-Level: X-Archive-Number: 200903/245 X-Sequence-Number: 31745 Manal Helal writes: > I defined a composite type and forgot its structure, data fields names > and data types. Is there any command that can define that for me? psql's \d command, for one. regression=# create type fooey as (f1 int, f2 text); CREATE TYPE regression=# \d fooey Composite type "public.fooey" Column | Type --------+--------- f1 | integer f2 | text regards, tom lane