pg_dump vs malloc

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pg_dump vs malloc
Дата
Msg-id BANLkTi=tJFG8av_V+ePe6TSi8-XDj=_dVg@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_dump vs malloc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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, or even #define it?

Or am I missing something in the code here?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: TG_DEPTH patch v1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: gcc 4.6 and hot standby