| От | Igal @ Lucee.org |
|---|---|
| Тема | Re: How to check if a field exists in NEW in trigger |
| Дата | |
| Msg-id | 1075832c-e131-474d-5d65-572004410838@lucee.org обсуждение |
| Ответ на | Re: How to check if a field exists in NEW in trigger (Michael Lewis <mlewis@entrata.com>) |
| Ответы |
Re: How to check if a field exists in NEW in trigger
|
| Список | pgsql-general |
On 8/5/2019 11:34 AM, Michael Lewis wrote: > As a note to the original poster, you might want to check out- > > https://www.postgresql.org/docs/current/citext.html Thanks, Michael. I'm familiar with the citext module. There is no reason, however, for an email address to be not-lower-cased, so while in some cases (no pun intended) it makes sense to keep the original CaSe while performing a case insensitive comparison, when it comes to email addresses I rather collapse the value upon insertion/update. Since that table has many more reads than writes, I am pretty sure that it's more performant too. Best, Igal
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера