Getting the type Oid in a CREATE TYPE output function ..

From: Weslee Bilodeau <weslee(dot)bilodeau(at)hypermediasystems(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Getting the type Oid in a CREATE TYPE output function ..
Date: 2006-10-12 16:04:09
Message-ID: 452E6779.6010508@hypermediasystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

I've tried using getBaseType, get_rel_type_id, and get_typ_typrelid.

Maybe I'm using the options wrong?
Or not looking in the right place?

I'm only interested in getting it working on 8.1 or greater, so if it
changes in older versions I'm not as concerned.

Any help is appreciated.

Weslee

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-10-12 16:19:24 SQL functions, INSERT/UPDATE/DELETE RETURNING, and triggers
Previous Message Heikki Linnakangas 2006-10-12 15:55:17 Re: Hints proposal