On Jul 13, 2008, at 16:06, David E. Wheeler wrote:
> Should those return bytea and citext, respectively? IOW, are these
> right?
>
> CREATE OR REPLACE FUNCTION citextrecv(bytea)
> RETURNS citext
> AS 'textrecv'
> LANGUAGE 'internal' IMMUTABLE STRICT;
>
> CREATE OR REPLACE FUNCTION citextsend(citext)
> RETURNS bytea
> AS 'textsend'
> LANGUAGE 'internal' IMMUTABLE STRICT;
To judge by the User-Defined Types docs, I was close. :-) I just
changed the argument to citextrecv to "internal".
Thanks,
David