| От | Tom Lane |
|---|---|
| Тема | Re: mcxt.c |
| Дата | |
| Msg-id | 9495.1063029450@sss.pgh.pa.us обсуждение |
| Ответ на | Re: mcxt.c ("Gaetano Mendola" <mendola@bigfoot.com>) |
| Список | pgsql-hackers |
"Gaetano Mendola" <mendola@bigfoot.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>> This seems inappropriate to me. Are you going to suggest that every
>> routine that takes a pointer parameter needs to explicitly test for
>> null?
> Of course I'm not suggesting this, what I'm suggesting is put an
> assert( ) if the test can slow down the performances and an "if ( ) "
> in places that are not going to touch the performances.
I see no value at all in an assert. The code will dump core just fine
with or without an assert ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера