Markus Schaber <schabi(at)logix-tt(dot)com> writes:
> Hmm, to remove redundancy, I'd change the <= to a < and define:
>
> if a==b then f(a)==f(b)
> if a<b then f(a)<=f(b)
>
> > Data types which could probably provide a useful function for f would be
> > int2, int4, oid, and possibly int8 and text (at least for SQL_ASCII).
How exactly do you imagine doing this for text?
I could see doing it for char(n)/varchar(n) where n<=4 in SQL_ASCII though.
--
greg