Re: c function: keep objects in memory for all session or all transaction

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: c function: keep objects in memory for all session or all transaction
Дата
Msg-id 603c8f070909021213o605fa483w81b1a18787337fee@mail.gmail.com
обсуждение исходный текст
Ответ на c function: keep objects in memory for all session or all transaction  (Christian Gonzalez <christian.gonzalez@sigis.com.ve>)
Список pgsql-hackers
On Wed, Sep 2, 2009 at 11:29 AM, Christian
Gonzalez<christian.gonzalez@sigis.com.ve> wrote:
> The point:
> There is some way to keep objects in [persisten] memory and then refer to
> these from c functions?.  In the current version of pgRoute, each
> transaction load the graph in memory (using MemoryContext), this isn't a
> enterprise solution for routing program.  Why I Wish is using a c function
> to load the graph in memory [persistent], something like:

Well note that whatever you allocate in TopMemoryContext (or wherever)
is going to be private to a single backend.  If it's shared data, you
probably want to put it in a table, I would think...

...Robert


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: remove flatfiles.c
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: c function: keep objects in memory for all session or all transaction