Re: ERROR: could not identify an equality operator for type box

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ERROR: could not identify an equality operator for type box
Date: 2010-12-03 22:04:03
Message-ID: 4CF96953.40505@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03.12.2010 23:53, Oleg Bartunov wrote:
> create table qq (b box);
> CREATE TABLE
> select count(*), b from qq group by b;
> ERROR: could not identify an equality operator for type box
> LINE 1: select count(*), b from qq group by b;
>
> but following select works fine
>
> select ' (43.6038,48.8664536),(1.3620777,1.44327)'::box = '
> (43.6038,48.8664536),(1.3620777,1.44327)'::box;
> ?column? ----------
> t
> (1 row)
> ^
> What does it means ?

GROUP BY requires b-tree sort operators. Although there is a '='
operator for box, there is no b-tree opclass.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2010-12-03 22:16:04 Re: Patch to add a primary key using an existing index
Previous Message Oleg Bartunov 2010-12-03 21:57:20 Re: ERROR: could not identify an equality operator for type box