Re: [HACKERS] Coding question

2004-06-14 Thread Ramanujam H S Iyengar
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 bod

[HACKERS] Coding question

2004-06-13 Thread Christopher Kings-Lynne
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