From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manal Helal <manalorama@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: forgot the structure of a composite type
Date: Sun, 29 Mar 2009 22:45:01 -0400
Message-ID: <10198.1238381101@sss.pgh.pa.us> (raw)
In-Reply-To: <131b56be0903291940j4c726abcgc0ae79a3d458fbec@mail.gmail.com>
References: <131b56be0903291940j4c726abcgc0ae79a3d458fbec@mail.gmail.com>
Manal Helal <manalorama@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, manalorama@gmail.com
Subject: Re: forgot the structure of a composite type
In-Reply-To: <10198.1238381101@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox