Which MemoryContext?

From: "Gevik Babakhani" <pgdev(at)xs4all(dot)nl>
To: "'pgsql-hackers'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Which MemoryContext?
Date: 2008-02-20 20:15:44
Message-ID: 002a01c873fd$5ff570e0$0a01a8c0@gevmus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-02-20 20:22:56 Re: CVS repository invalid revision
Previous Message Christian Robottom Reis 2008-02-20 19:43:32 Re: CVS repository invalid revision