Re: use-regular-expressions-to-simplify-less_greater-and-not_equals.patch
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: use-regular-expressions-to-simplify-less_greater-and-not_equals.patch |
| Дата | |
| Msg-id | 3936135.1628652975@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | use-regular-expressions-to-simplify-less_greater-and-not_equals.patch ("孙诗浩(思才)" <sunshihao.ssh@alibaba-inc.com>) |
| Ответы |
Re: use-regular-expressions-to-simplify-less_greater-and-not_equals.patch
|
| Список | pgsql-hackers |
"=?UTF-8?B?5a2Z6K+X5rWpKOaAneaJjSk=?=" <sunshihao.ssh@alibaba-inc.com> writes:
> we can use regular expressions (<>|!=) to cover "<>" and "!=". There is no
> need to have two definitions less_greater and not_equals, because it will confuse developer.
> So, we can use only not_equals to cover this operator set.
I do not find this an improvement. Yeah, it's a bit shorter, but it's
less clear; not least because the comment explaining the <>-means-!=
behavior is no longer anywhere near the code that implements that
behavior. It would also get in the way if we ever had reason to treat <>
and != as something other than exact equivalents.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера