Re: [PATCH] Equivalence Class Filters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Equivalence Class Filters
Дата
Msg-id 7041.1449503643@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Equivalence Class Filters  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: [PATCH] Equivalence Class Filters  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 12/6/15 10:38 AM, Tom Lane wrote:
>> I said "in most cases".  You can find example cases to support almost any
>> weird planner optimization no matter how expensive and single-purpose;
>> but that is the wrong way to think about it.  What you have to think about
>> is average cases, and in particular, not putting a drag on planning time
>> in cases where no benefit ensues.  We're not committing any patches that
>> give one uncommon case an 1100X speedup by penalizing every other query 10%,
>> or even 1%; especially not when there may be other ways to fix it.

> This is a problem that seriously hurts Postgres in data warehousing 
> applications.

Please provide some specific examples.  I remain skeptical that this
would make a useful difference all that often in the real world ...
and handwaving like that does nothing to change my opinion.  What do
the queries look like, and why would deducing an extra inequality
condition help them?
        regards, tom lane



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: [PATCH] Equivalence Class Filters
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [PATCH] Equivalence Class Filters