Skip site navigation (1) Skip section navigation (2)

Re: memory allocation in postgres

From: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: memory allocation in postgres
Date: 2004-11-24 09:05:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
On Monday 22 November 2004 22:53, Kjetil Haaland wrote:
> 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?

Hi again

Does anyone now how i do this? I have tried to use pfree(pointer) but i 
doesn't seem to do anything. I print out whats in the pointer before i use 
pfree and after i use it and it is the same. Am i using the wrong method or 
is there any other way to do this?



In response to

pgsql-novice by date

Next:From: Pradeepkumar, Pyatalo (IE10)Date: 2004-11-24 09:09:10
Subject: Replacing old tuples on insert
Previous:From: ravi shankarDate: 2004-11-24 08:03:02
Subject: Re: Dumping Postgresql 7.4.2 database file into Postgresql 7.1.3 or 7.3 or 7.2 databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group