Alvaro Herrera <alvherre(at)surnet(dot)cl> writes:
> I think you could create a btree operator class to make it all work.
Hm. Given that we've managed to build a general opclass for arrays,
I suppose it should be possible for records too. Hardly trivial though.
A closely related point is fixing row comparisons to obey the SQL
semantics properly.
regards, tom lane