Gevik Babakhani wrote:
> 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?
TopMemoryContext sounds right. Be careful not to leak there.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com