| От | Tom Lane |
|---|---|
| Тема | Re: Optimizer & boolean syntax |
| Дата | |
| Msg-id | 19807.1037933455@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Optimizer & boolean syntax (Daniele Orlandi <daniele@orlandi.com>) |
| Список | pgsql-hackers |
Daniele Orlandi <daniele@orlandi.com> writes:
> The problem is the opposite... so, effectively, seems that the optimizer
> considers "monitored" and "monitored=true" as two different expressions...
Check.
> The viceversa is analog and we also can see that the syntax "monitored
> is true" is considered different from the other two syntaxes:
As it should be.
> What I propose is that all those syntaxes are made equivalent
Only two of them are logically equivalent. Consider NULL.
Even for the first two, assuming equivalence requires hard-wiring an
assumption about the behavior of the "bool = bool" operator; which is
a user-redefinable operator. I'm not totally comfortable with the idea.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера