Re: memory allocation in postgres

From: "Kjetil Haaland" <kjetil(dot)haaland(at)student(dot)uib(dot)no>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: memory allocation in postgres
Date: 2004-11-22 21:53:14
Message-ID: 001701c4d0dd$bff634f0$0200000a@goodspeed
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

>> The problem is, when i allocate memory in some of the other functions it
>> is
>> null the first time i call it, and thats correct, but the next time i
>> call
>> the same function, what was inserted in the last round is still there.
>
> Isn't that what you just said you wanted?
>
No and yes, in the first function i wanted it to last, but in the next i
want it to go away, so my question is how do i free the memory, so that next
time i call the function in the same session the pointer that points to the
char value, points to a null value or nothing?

-Kjetil

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jeff Flowers 2004-11-22 22:55:09 Re: Using PostgreSQL As A Personal Database
Previous Message Tom Lane 2004-11-22 21:17:54 Re: postgis compile question