Re: The return value of allocate_recordbuf()

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: The return value of allocate_recordbuf()
Дата
Msg-id CA+Tgmoay_=oK6+jtbqv21uOsKPGmWtyh2cfRVmd+eVF0cbgYgw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: The return value of allocate_recordbuf()  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Ответы Re: The return value of allocate_recordbuf()  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Mon, Dec 29, 2014 at 6:14 AM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
> Hmm. There is no way to check beforehand if a palloc() will fail because of
> OOM. We could check for MaxAllocSize, though.

I think we need a version of palloc that returns NULL instead of
throwing an error.  The error-throwing behavior is for the best in
almost every case, but I think the no-error version would find enough
users to be worthwhile.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: psql tab completion: fix COMMENT ON ... IS IS IS
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Parallel Seq Scan