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



Sun, 13 Jun 2004 16:19:44 +0800 (WST)
Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Coding question