Re: [HACKERS] _text problem in union - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: [HACKERS] _text problem in union
Date
Msg-id 37EFA1CA.5691C0EA@tm.ee
Whole thread Raw
In response to Re: [HACKERS] _text problem in union  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] _text problem in union
List pgsql-hackers
Bruce Momjian wrote:
>
> > abil=> select '{"aaa"}'::_text union select '{"bbb"}'::_text;
> > ERROR:  Unable to identify an ordering operator '<' for type '_text'
> >         Use an explicit ordering operator or modify the query
> > abil=>
>
> Good problem description.  Seems we can't compare arrays of text fields.
>
> Seems if we have an array of text fields, we could compare each element
> one-by-one using the base type until we get a comparison result.
>
> Not sure if this should make the TODO list or not.

It woulf be better to have a generic array compare op, that just
traverses
both arrays comparing them with the "<" for base type

--------------
Hannu


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Cannot insert into temp tables
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] _text problem in union