Re: Creating a VIEW with a POINT column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating a VIEW with a POINT column
Дата
Msg-id 4507.1214452925@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating a VIEW with a POINT column  (Nick <nboutelier@hotmail.com>)
Ответы Re: Creating a VIEW with a POINT column  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-hackers
Jan Urbański <j.urbanski@students.mimuw.edu.pl> writes:
> Same thing for GROUP BY.

Yeah.  The GROUP BY case is even more annoying, because we *have* the
planner/executor infrastructure to do it via hashing; but the parser
barfs immediately if there is not btree opclass support for the type.
I'm not sure how to fix the parser and the parsetree representation
to be agnostic about hash versus sort implementations --- any thoughts?

> ... One last remark: unless something is done about 
> it in 8.4, maybe it is worthwhile to change the error message (which 
> clearly confused Nick) and add some documentation about why you can't 
> use DISTINCT with types without a btree index opclass?

IIRC, the error message is correct for some other cases, so it might be
hard to fix it without taking two steps backward overall.  But feel free
to take a look if you want to.  Nuthin wrong with more documentation
either ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Creating a VIEW with a POINT column
Следующее
От: Jan Urbański
Дата:
Сообщение: Re: Creating a VIEW with a POINT column