From: | Zakkr <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] _text problem in union |
Date: | 1999-09-28 07:26:12 |
Message-ID: | Pine.LNX.3.96.990928091713.23696A-100000@ara.zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 27 Sep 1999, Tom Lane wrote:
> Zakkr <zakkr(at)zf(dot)jcu(dot)cz> writes:
> > 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
>
> Depending on what you're trying to do, UNION ALL might be an adequate
> workaround. UNION is defined to remove duplicates, so it has to sort
> the results of the union'ed queries, which requires an ordering
> operator. UNION ALL just appends the two query results together...
>
Yes, UNION ALL is good resolution for me. Thank Tom.
> In the long run we probably ought to think about providing ordering
> operators for array types.
..hmm :-))
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 1999-09-28 08:19:22 | Re: [HACKERS] NULL as an argument in plpgsql functions |
Previous Message | Oleg Broytmann | 1999-09-28 07:06:42 | Re: [HACKERS] 6.5.2 |