inet type/merge joins

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема inet type/merge joins
Дата
Msg-id Pine.BSO.4.10.10106092245390.17529-100000@spider.pilosoft.com
обсуждение исходный текст
Ответы Re: inet type/merge joins  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-hackers
Hi,

I noticed that postgresql won't ever use a merge join when dealing with
inet types (for t1.ip=t2.ip, where merge is definitely the best method).
Delving into pg_operator, it appears that = for inet datatype is not
created with any left_sort_op/right_sort_op and thus won't merge won't be
possible. To me, this looks like an oversight, as (at least for inet
type), network_eq should be able to properly sort the data.

Anyone up to modify the catalog accordingly for 7.2?

(For cidr datatype this doesn't exactly apply, I think, because of all the
trickery with netmasks, network_eq may not properly sort the cidr data. I
need to think more about this)


Thanks
-alex




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

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: cstring datatype
Следующее
От: Tom Lane
Дата:
Сообщение: Re: cstring datatype