Re: Creating a VIEW with a POINT column

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Creating a VIEW with a POINT column
Дата
Msg-id 200806261333.39846.dfontaine@hi-media.com
обсуждение исходный текст
Ответ на Re: Creating a VIEW with a POINT column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Le jeudi 26 juin 2008, Tom Lane a écrit :
> 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?

Would it be possible to add some semantics to the operator itself?
I'm thinking about indicating that an operator is the equality one without
resorting to OPCLASS and while at it adding the notion of transitivity to
operators (which you'd like to abuse for some joins conditions iirc).

The CREATE OPERATOR =(type, type) (... EQUALITY ...) would give the
information to PostgreSQL and its planner. I'm not sure it current operator
catalog allows us to have a unique constraint for an equality operator for a
given couple of (LEFTARG, RIGHARG), though.

Would this help?
--
dim

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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: plpgsql: Is ELSE IF supported or not?
Следующее
От: Jeff McKenna
Дата:
Сообщение: Re: MSVC 2003 compile error with pg8.3.3