| От | Tom Lane |
|---|---|
| Тема | Re: citext function overloads for text parameters |
| Дата | |
| Msg-id | 8491.1525620692@sss.pgh.pa.us обсуждение |
| Ответ на | Re: citext function overloads for text parameters (Shay Rojansky <roji@roji.org>) |
| Ответы |
Re: citext function overloads for text parameters
|
| Список | pgsql-hackers |
Shay Rojansky <roji@roji.org> writes:
> Do you think it would be appropriate to simply add an strpos(citext, text)
> overload to the extension to make sure this behaves more as expected? If so
> I can try to submit a patch at some point.
To me, if there's both a citext and a text parameter, then it's simply
unclear which behavior is wanted; I do not think there's a principled
argument that it should be case-insensitive. Thus, adding a function
to reverse the current interpretation would amount to breaking some
currently-working apps to favor others that currently don't work.
Doesn't really sound like a net gain.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера