| От | Tom Lane |
|---|---|
| Тема | Re: pg_dump vs malloc |
| Дата | |
| Msg-id | 23566.1307732820@sss.pgh.pa.us обсуждение |
| Ответ на | pg_dump vs malloc (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: pg_dump vs malloc
|
| Список | pgsql-hackers |
Magnus Hagander <magnus@hagander.net> writes:
> I came across a situation today with a pretty bad crash of pg_dump,
> due to not checking the return code from malloc(). When looking
> through the code, it seems there are a *lot* of places in pg_dump that
> doesn't check the malloc return code.
> But we do have a pg_malloc() function in there - but from what I can
> tell it's only used very sparsely?
> Shouldn't we be using that one more or less everywhere
Yup. Have at it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера