Re: How to use index in WHERE int = float

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to use index in WHERE int = float
Дата
Msg-id 7423.1226269359@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to use index in WHERE int = float  ("Andrus" <kobruleht2@hot.ee>)
Ответы Re: How to use index in WHERE int = float  ("Andrus" <kobruleht2@hot.ee>)
Список pgsql-general
"Andrus" <kobruleht2@hot.ee> writes:
>> The IN-pullup code runs before constant-simplification does, so it
>> doesn't see that as a simple join condition.

> Seems serious design flaw.
> How to change expression parser so that contant parts of expressions are
> removed before IN-pullup?

It would be far simpler to fix your query generator to not emit the
useless "0 or".

Even if we made the planner deal with that, the number of cycles it
would expend to recover from the generator's stupidity would be several
orders of magnitude higher than the number of cycles needed to not be so
stupid.

            regards, tom lane

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: How to use index in WHERE int = float
Следующее
От: Blazej
Дата:
Сообщение: Re: Chart of Accounts