Re: unchecked out of memory in postmaster.c
От | Tom Lane |
---|---|
Тема | Re: unchecked out of memory in postmaster.c |
Дата | |
Msg-id | 12474.1239067195@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: unchecked out of memory in postmaster.c (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: unchecked out of memory in postmaster.c
|
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Tom Lane wrote: >> I guess I need to point out that those ereport calls already pose a far >> more substantial risk of palloc failure than the DLNewElem represents. > Hmm, do they? I mean, don't they use ErrorContext, which is supposed to > be preallocated? Well, we'd like to think that they pose an insignificant risk, but it's hard to credit that DLNewElem isn't insignificant as well. If you're really intent on doing something about this, my inclination would be to get rid of the dependence on DLNewElem altogether. Add a Dlelem field to the Backend struct and use DLInitElem (compare the way catcache uses that module). regards, tom lane
В списке pgsql-hackers по дате отправления: