From: | "codeWarrior" <gpatnude(at)hotmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: User-defined types |
Date: | 2006-04-07 18:39:55 |
Message-ID: | e16bjf$2t2c$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I figured it out....
BTW: I was thinking more along the lines of:
SELECT PT.*, PA.* FROM pg_attribute PA
JOIN pg_type PT ON PA.attrelid = PT.typrelid
JOIN pg_class PC ON PC.oid = PA.attrelid
WHERE PT.typnamespace = 2200 AND PA.attnum > 0 AND PC.relkind IN ('r', 'c',
'v');
Perhaps this should be made into a view in the information_schema.....
Regards,
Gregory P. Patnude
Vice President - Applications & Innovations Group
iDynaTECH, Inc
665 North Riverpoint Blvd
Spokane, WA 99202
(509) 343-3104 [voice]
(208) 691-6198 [cellular]
http://www.idynatech.com
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote in message
news:15086(dot)1144434800(at)sss(dot)pgh(dot)pa(dot)us(dot)(dot)(dot)
> "codeWarrior" <gpatnude(at)hotmail(dot)com> writes:
>> Anyone know of a quick and dirty query that can retrieve the various type
>> definitions ? I am looking to retrieve the schema-equivalent
>> representation
>> of a custom (user-defined) types.
>
> Invoking "pg_dump -s" is by far the most future-proof approach.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-04-07 19:03:08 | Re: User-defined types |
Previous Message | Tom Lane | 2006-04-07 18:33:20 | Re: User-defined types |