Re: pg_dump vs malloc

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: pg_dump vs malloc
Дата
Msg-id BANLkTi=W=aX5E1CEORQi79P=tqy=qWs_WA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dump vs malloc  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_dump vs malloc
Re: pg_dump vs malloc
Re: pg_dump vs malloc
Список pgsql-hackers
On Fri, Jun 10, 2011 at 21:07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.

Something along the line of this?

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

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Repeated PredicateLockRelation calls during seqscan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: smallserial / serial2