Re: not checking value returned from palloc?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: not checking value returned from palloc?
Дата
Msg-id 200603192238.50603.peter_e@gmx.net
обсуждение исходный текст
Ответ на not checking value returned from palloc?  (Mark Dilger <pgsql@markdilger.com>)
Ответы Re: not checking value returned from palloc?  (Mark Dilger <pgsql@markdilger.com>)
Список pgsql-hackers
Mark Dilger wrote:
> Looking through the postgresql source code, I notice that there are
> many places were palloc is used but the return value is not checked
> to see if it is null.

palloc will throw an exception if it cannot fulfill the request.  Code 
that checks the return value for null is in fact a waste.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: not checking value returned from palloc?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: not checking value returned from palloc?