Re: Missing checks when malloc returns NULL...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missing checks when malloc returns NULL...
Дата
Msg-id 20942.1472735024@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Missing checks when malloc returns NULL...  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Missing checks when malloc returns NULL...  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> Also, we could take one extra step forward then, and just introduce
> ShmemAllocExtended that holds two flags as per the attached:
> - SHMEM_ALLOC_ZERO that zeros all the fields
> - SHMEM_ALLOC_NO_OOM that does not fail

Don't see the point really ... it's just more API churn without any
very compelling reason.

(It doesn't look like you correctly implemented the case of both
flags being set, either.)
        regards, tom lane



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

Предыдущее
От: Andrew Borodin
Дата:
Сообщение: Re: GiST penalty functions [PoC]
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: GIN logging GIN_SEGMENT_UNMODIFIED actions?