Re: [HACKERS] change palloc to malloc

2005-03-17 Thread Karel Zak
On Tue, 2005-03-15 at 18:29 -0500, Bruce Momjian wrote: > Nguyen Hai wrote: > > Hi, > > > > Is it possible to convert palloc back to malloc? > > If so, what should I do to make the change? > > You can, but palloc is automatically freed at the end of a query, while > malloc has to be freed in the

Re: [HACKERS] change palloc to malloc

2005-03-15 Thread Bruce Momjian
Nguyen Hai wrote: > Hi, > > Is it possible to convert palloc back to malloc? > If so, what should I do to make the change? You can, but palloc is automatically freed at the end of a query, while malloc has to be freed in the code. Why do you want to make the switch? -- Bruce Momjian

[HACKERS] change palloc to malloc

2005-03-15 Thread Nguyen Hai
Hi, Is it possible to convert palloc back to malloc? If so, what should I do to make the change? Many Thanks, Hai __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/