Re: pg_dump vs malloc - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump vs malloc
Date
Msg-id 23566.1307732820@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump vs malloc  (Magnus Hagander <magnus@hagander.net>)
Responses Re: pg_dump vs malloc
List 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 by date:

Previous
From: Josh Berkus
Date:
Subject: Re: [v9.2] Start new timeline for PITR
Next
From: Robert Haas
Date:
Subject: Re: [v9.2] Start new timeline for PITR