Garfield Lewis <garfield(dot)lewis(at)lzlabs(dot)com> writes:
> I would like to know if it is possible to get the CTID from within
> the OUTPUT and SEND functions of a CREATE TYPE?
No. A datatype output function has no reason to expect that the value
it's handed has ever been in a table at all.
regards, tom lane