Re: c function: keep objects in memory for all session or all transaction - Mailing list pgsql-hackers

From Robert Haas
Subject Re: c function: keep objects in memory for all session or all transaction
Date
Msg-id 603c8f070909021213o605fa483w81b1a18787337fee@mail.gmail.com
Whole thread Raw
In response to c function: keep objects in memory for all session or all transaction  (Christian Gonzalez <christian.gonzalez@sigis.com.ve>)
List 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 by date:

Previous
From: Robert Haas
Date:
Subject: Re: remove flatfiles.c
Next
From: Andrew Dunstan
Date:
Subject: Re: c function: keep objects in memory for all session or all transaction