| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера