| От | Mark Dilger |
|---|---|
| Тема | Re: not checking value returned from palloc? |
| Дата | |
| Msg-id | 441DD52C.9090001@markdilger.com обсуждение исходный текст |
| Ответ на | Re: not checking value returned from palloc? (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: not checking value returned from palloc?
|
| Список | pgsql-hackers |
Peter Eisentraut wrote: > 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. > Interesting. So the patch should go the other way, and remove the checks that are currently in the code?
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера