Weslee Bilodeau <[EMAIL PROTECTED]> writes: > I'm trying to create a few new types, and based on the type in/out > functions will operate a bit differently. > For the input function finding the type Oid is easy - > Oid our_type_oid = PG_GETARG_OID(1); > For output though I'm having difficulty finding out the type Oid.
You can't, and if you could, relying on it would be a security hole in your function (somebody could invoke the function manually and pass it a false OID value). You have to put everything you need to know right into the Datum. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq