Re: memory allocation in postgres - Mailing list pgsql-novice

From Kjetil Haaland
Subject Re: memory allocation in postgres
Date
Msg-id 001701c4d0dd$bff634f0$0200000a@goodspeed
Whole thread Raw
In response to memory allocation in postgres  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
Responses Re: memory allocation in postgres
List 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


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgis compile question
Next
From: "Jeff Flowers"
Date:
Subject: Re: Using PostgreSQL As A Personal Database