Re: Safe memory allocation functions

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: Safe memory allocation functions
Дата
Msg-id 1421134127005-5833711.post@n5.nabble.com
обсуждение исходный текст
Ответ на Safe memory allocation functions  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Michael Paquier wrote
> Attached is a patch adding the following set of functions for frontend
> and backends returning NULL instead of reporting ERROR when allocation
> fails:
> - palloc_safe
> - palloc0_safe
> - repalloc_safe

The only thing I can contribute is paint...I'm not fond of the word "_safe"
and think "_try" would be more informative...in the spirit of try/catch as a
means of error handling/recovery.

David J.



--
View this message in context: http://postgresql.nabble.com/Safe-memory-allocation-functions-tp5833709p5833711.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Safe memory allocation functions
Следующее
От: Michael Paquier
Дата:
Сообщение: Unused variables in hstore_to_jsonb