Re: proposal: support empty string as separator for string_to_array
В списке pgsql-hackers по дате отправления:
| От | Pavel Stehule |
|---|---|
| Тема | Re: proposal: support empty string as separator for string_to_array |
| Дата | |
| Msg-id | 162867790907271059u71a7cef8xb20376599d3fa2a0@mail.gmail.com обсуждение |
| Ответ на | Re: proposal: support empty string as separator for string_to_array (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
2009/7/27 Tom Lane <tgl@sss.pgh.pa.us>: > Pavel Stehule <pavel.stehule@gmail.com> writes: >> I tested implementation and it's about 30% faster than using regexp. > > In a real application, that's going to be negligible compared to all the > other costs involved in pushing the data around. And we still haven't > seen any in-the-field requests for this functionality, so even if the > gap were wider, I don't see the point of putting effort into it. > This is just possible optimalisation - Maybe Merlin proposal is the best - we could add this technique to regexp_split_to_array - when is pattern empty, then we could to use direct char separation - without any new function or change of current function. And somebody, that use regexp_split_to_array now will have profit too. Pavel > regards, tom lane >
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера