Re: BUG #4313: Strange optimizer behaviour

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: BUG #4313: Strange optimizer behaviour
Дата
Msg-id 87fxq834u1.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на BUG #4313: Strange optimizer behaviour  ("Daniel Podlejski" <daniel.podlejski@gmail.com>)
Список pgsql-bugs
"Daniel Podlejski" <daniel.podlejski@gmail.com> writes:

> I think there is no sense to cast too big value to numeric when field type
> is integer.
> On really big table this "bug" cause unnecessary io load.

Well, for example, the same logic doesn't hold for < where all the records
would satisfy the inequality but only numeric.< will be able to handle the
argument.

I think you could get the behaviour you're looking for by using an untyped
quoted constant like '11111111111111111111111111111111111111111111111111'
instead of using an integer constant. The fact that these two cases behave
differently is a bit confusing too.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's On-Demand Production Tuning

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

Предыдущее
От: "Daniel Podlejski"
Дата:
Сообщение: BUG #4313: Strange optimizer behaviour
Следующее
От: "jspxnet"
Дата:
Сообщение: BUG #4315: message encoding is error,not show chinese