| От | Josh Berkus |
|---|---|
| Тема | Re: "reverse()" on strings |
| Дата | |
| Msg-id | 200208261411.01219.josh@agliodbs.com обсуждение |
| Ответ на | Re: "reverse()" on strings (Jeff Boes <jboes@nexcerpt.com>) |
| Ответы |
Re: "reverse()" on strings
|
| Список | pgsql-sql |
Jeff, h012, > CREATE FUNCTION fn_strrev(text) returns text as ' > return reverse($_[0]) > ' language 'plperl' with (iscachable); If you make that "WITH (ISCACHABLE, ISSTRICT)" the index will be faster to update on columns which contain large numbers of NULLs. "ISSTRICT" refers to the fact that if the function receives a NULL, it will output a NULL, and thus saves the parser the time running NULLs through the function. Also, remember to use this index, you'll have to call the exact same function in your queries. -- -Josh BerkusAglio Database SolutionsSan Francisco
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера