Re: Which MemoryContext? - Mailing list pgsql-hackers

From Gevik Babakhani
Subject Re: Which MemoryContext?
Date
Msg-id 004101c8741b$a67b3310$0a01a8c0@gevmus
Whole thread Raw
In response to Re: Which MemoryContext?  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Responses Re: Which MemoryContext?
List pgsql-hackers
> On backend exit, everything in TopMemoryContext, like all 
> other non-shared memory, is automatically released.
> 

So it is safe to not free the allocated memory in TopMemoryContext and leave
it to be released on backend exit.
Thank you for the help :)

Regards,
Gevik.




pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Permanent settings
Next
From: Gregory Stark
Date:
Subject: Re: Permanent settings