From: | "Ramanujam H S Iyengar" <hals_ramu(at)hotmail(dot)com> |
---|---|
To: | chriskl(at)familyhealth(dot)com(dot)au, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Coding question |
Date: | 2004-06-14 19:34:49 |
Message-ID: | BAY19-F28jEo0TOwk4D0002f2fa@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I think replacing the RELOID with TYPEOID should get you the required Datum
...
later you may have to use
Form_pg_type pform = (Form_pg_type) GETSTRUCT(tuple);
to get a reference to the type tuple.
I have worked this way but iam not sure whether this is correct or not !!
If iam wrong some body can correct me !!
-Ramu
If typTup is of type Form_pg_type, is this use of ObjectIdGetDatum legal?
tuple = SearchSysCache(RELOID, ObjectIdGetDatum(typTup->typrelid),
0, 0, 0);
If not, how do I turn ->typrelid into an Oid type for safe passage
through ObjectIdGetDatum?
Chris
_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/index.php?ptnr=hmltag
Only on www.shaadi.com. Register now!
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-06-14 20:18:24 | Spinlock assembly cleanup |
Previous Message | Gary Doades | 2004-06-14 17:59:34 | Re: [HACKERS] [PATCHES] Compiling libpq with VisualC |