Which MemoryContext? - Mailing list pgsql-hackers

From Gevik Babakhani
Subject Which MemoryContext?
Date
Msg-id 002a01c873fd$5ff570e0$0a01a8c0@gevmus
Whole thread Raw
Responses Re: Which MemoryContext?  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
List pgsql-hackers
Hi,

I want to keep an array of localized strings in memory. 
This array is dynamically allocated and is going to be used between
transactions (that are not necessarily nested). 
It must be cleaned/freed when postmaster exists. 
In which context should this array be initialized? TopMemoryContext perhaps?

Any thoughts?

Regards,
Gevik.



pgsql-hackers by date:

Previous
From: Christian Robottom Reis
Date:
Subject: Re: CVS repository invalid revision
Next
From: Tom Lane
Date:
Subject: Re: CVS repository invalid revision