Re: unchecked out of memory in postmaster.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unchecked out of memory in postmaster.c
Дата
Msg-id 23797.1239059255@sss.pgh.pa.us
обсуждение исходный текст
Ответ на unchecked out of memory in postmaster.c  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: unchecked out of memory in postmaster.c  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Some time ago I noticed that in postmaster.c there's a corner case which
> probably causes postmaster to exit in out-of-memory condition.  See
> BackendStartup, near the bottom, there's a call to DLNewElem().  The
> problem is that this function calls palloc() and thus can elog(ERROR) on
> OOM, but postmaster has no way to defend itself from this and would die.

So?  There are probably hundreds of palloc calls that are reachable from
the postmaster main loop.  If this were allocating more than a few bytes
of memory, it might be worth worrying about.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: unchecked out of memory in postmaster.c
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: unchecked out of memory in postmaster.c