Re: change palloc to malloc

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Nguyen Hai <nguyen_hai91(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: change palloc to malloc
Date: 2005-03-15 23:29:27
Message-ID: 200503152329.j2FNTRW23307@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2005-03-16 00:01:29 Re: CVS head broken on win32?
Previous Message Nguyen Hai 2005-03-15 23:18:34 change palloc to malloc