Rearranging simple where clauses

Поиск
Список
Период
Сортировка
От Michael Graham
Тема Rearranging simple where clauses
Дата
Msg-id 1304516689.24106.40.camel@brutus
обсуждение исходный текст
Ответы Re: Rearranging simple where clauses
Список pgsql-general
Hi,

I was playing around with some sql in postgres and got to wondering why
the optimiser can't figure out that rearranging some expressions can
result in massive improvements in the queue plan.  For example id + 5 <
100 compared with id < 100 - 5.

Is it simply that no one has go around to doing it or is there some
deeper reasons?  It's not really important I'm just curious.

Cheers,
--
Michael Graham <mgraham@bloxx.com>



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: pervasiveness of surrogate (also called synthetic) keys
Следующее
От: Jakub Królikowski
Дата:
Сообщение: Default Operator Class for datatype