| От | Tom Lane |
|---|---|
| Тема | Re: Trigger causes the server to crash with SEGV |
| Дата | |
| Msg-id | 8203.991428980@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Trigger causes the server to crash with SEGV (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
I wrote:
> I tried it here. I don't get a crash; I get a rather long delay and
> then
> psql:vlad.sql:61: ERROR: Memory exhausted in AllocSetContextCreate(8192)
Some experimentation with other infinitely-recursive plpgsql functions
soon turned up a crash, however: spi.c was being sloppy about not
checking for a failure return from malloc(). I have repaired that,
as well as some other similar omissions elsewhere in the backend.
I can't be sure if that's the case that was biting you, however.
Someday we ought to mount a concerted effort to get rid of all direct
uses of malloc() and friends in the backend; they're too easy to misuse,
and there's no good reason not to funnel everything through palloc.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера