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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: ERROR: could not identify an equality operator for type box
Дата
Msg-id 4CF96953.40505@enterprisedb.com
обсуждение исходный текст
Ответ на ERROR: could not identify an equality operator for type box  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: ERROR: could not identify an equality operator for type box  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: ERROR: could not identify an equality operator for type box
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Patch to add a primary key using an existing index