Re: unchecked malloc - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: unchecked malloc
Date
Msg-id dhal1u$suf$1@news.hub.org
Whole thread Raw
In response to unchecked malloc  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: unchecked malloc
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> wrote
>
> No, because you're thinking in terms of the backend environment, and
> generally in the backend the answer to "when to use malloc directly"
> is "never".
>

Well, except before MemoryContext mechanism is set up? For example, the 
functions(e.g., GUC, vfd) used during bootstrap.

So are you suggesting we fix these place by place? This should be ok.

Regards,
Qingqing 




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: unchecked malloc
Next
From: Tom Lane
Date:
Subject: Re: unchecked malloc