| От | Tom Lane |
|---|---|
| Тема | Re: PL/pgSQL Memory Management? |
| Дата | |
| Msg-id | 13206.1014345833@sss.pgh.pa.us обсуждение |
| Ответ на | PL/pgSQL Memory Management? ("Command Prompt, Inc." <pgsql-general@commandprompt.com>) |
| Список | pgsql-general |
"Command Prompt, Inc." <pgsql-general@commandprompt.com> writes:
> I have a client that was using a PL/pgSQL function called html_linebreaks
> to translate newlines into (X)HTML <br/> tags, and he ran into a serious
> memory issue today which actually brought down his Linux server.
FWIW, I've now tried this in 7.2, and it doesn't seem to leak memory;
but it is unreasonably slow ... which is not too surprising considering
the number of cycles you are expending per byte. plpgsql is not a good
text-processing language. This function would be a one-liner in either
plperl or pltcl, and tremendously more efficient too.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера