> 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
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
No comments:
Post a Comment