pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedforgot the structure of a composite type
2+ messages / 2 participants
[nested] [flat]
* forgot the structure of a composite type
@ 2009-03-30 02:40 Manal Helal <manalorama@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Manal Helal @ 2009-03-30 02:40 UTC (permalink / raw)
To: pgsql-admin
Hi
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? or a
table where I can find this information stored to retrieve it back,
sorry if its a basic question, but it is my first time with composite
types and didn't keep enough documentation while just starting,
thank you very much,
Kind Regards,
Manal
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: forgot the structure of a composite type
@ 2009-03-30 02:45 Tom Lane <tgl@sss.pgh.pa.us>
parent: Manal Helal <manalorama@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2009-03-30 02:45 UTC (permalink / raw)
To: Manal Helal <manalorama@gmail.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2009-03-30 02:45 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 02:40 forgot the structure of a composite type Manal Helal <manalorama@gmail.com>
2009-03-30 02:45 ` Tom Lane <tgl@sss.pgh.pa.us>
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