Re: [GENERAL] Equivalence Classes when using IN

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: [GENERAL] Equivalence Classes when using IN
Дата
Msg-id CAKJS1f8RHOi-=KjCj51bU+CPpeJyaeYyDQbFL08qaQBEj4U9Gg@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Equivalence Classes when using IN  (Kim Rose Carlsen <krc@hiper.dk>)
Ответы Re: [GENERAL] Equivalence Classes when using IN
Re: [GENERAL] Equivalence Classes when using IN
Список pgsql-general
On 9 October 2017 at 08:01, Kim Rose Carlsen <krc@hiper.dk> wrote:
> Is this because postgres never consider IN clause when building equivalence
> class's?

Only btree equality operators are considered at the moment.

> Are there any interests in adding such rule?

There's been some discussion on it previously, although there is lots
to still be worked out, for example, it's not that clear if it will
always be a win to always apply the qual.

There are more details of the discussion in [1], although there's
probably lots more threads to be found if you search the archives.

[1]
https://www.postgresql.org/message-id/flat/CAKJS1f9FK_X_5HKcPcSeimy16Owe3EmPmmGsGWLcKkj_rW9s6A%40mail.gmail.com#CAKJS1f9FK_X_5HKcPcSeimy16Owe3EmPmmGsGWLcKkj_rW9s6A@mail.gmail.com

-- David Rowley                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Kim Rose Carlsen
Дата:
Сообщение: [GENERAL] Equivalence Classes when using IN
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Equivalence Classes when using IN