Re: Out of memory error causes Abort, Abort tries to allocate memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Out of memory error causes Abort, Abort tries to allocate memory
Дата
Msg-id 5606.1161814525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Out of memory error causes Abort, Abort tries to allocate memory  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Out of memory error causes Abort, Abort tries to  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Jeff Davis wrote:
>> * smgrGetPendingDeletes() calls palloc()
>> * palloc() fails, resulting in ERROR, causing infinite recursion

> Hmm, maybe we could have AbortTransaction switch to ErrorContext, which
> has some preallocated space, before calling RecordTransactionAbort (or
> maybe have RecordTransactionAbort itself do it).

Seems like it'd be smarter to try to free some memory before we push
forward with transaction abort.  ErrorContext has only a limited amount
of space ...

            regards, tom lane

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Out of memory error causes Abort, Abort tries to
Следующее
От: "Thomas H."
Дата:
Сообщение: Re: BUG #2712: could not fsync segment: Permission