wieck(at)debis(dot)com (Jan Wieck) writes:
> There are functions text(lztext) and lztext(text) too, but
> the system is unable to find an operator if one compares
> text=lztext in a query. IIRC, creating a function named as
> the target type and taking the source type is what made auto-
> type-conversion work - so what am I missing here?
I'll take a look. I think the key may be teaching TypeCategory
to know that lztext is a member of the text type class.
regards, tom lane