| От | Alvaro Herrera |
|---|---|
| Тема | Why repalloc() != realloc() ? |
| Дата | |
| Msg-id | 20040602025718.GA518@dcc.uchile.cl обсуждение исходный текст |
| Ответы |
Re: Why repalloc() != realloc() ?
|
| Список | pgsql-hackers |
Hackers, Is there a reason why repalloc() does not behave the same as realloc? realloc(NULL, size) behaves the same as malloc(size), and it seems useful behavior -- I wonder why repalloc() chooses to Assert() against this exact condition? I assume this is because the NULL pointer would not know what context it belongs to, but the obvious answer is CurrentMemoryContext just like palloc() does. So there must be another reason. Can this behavior be changed? -- Alvaro Herrera (<alvherre[a]dcc.uchile.cl>) "Para tener más hay que desear menos"
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера