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

From Peter Eisentraut
Subject Re: c function: keep objects in memory for all session or all transaction
Date
Msg-id 1251916169.30166.1.camel@vanquo.pezone.net
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>)
Responses Re: c function: keep objects in memory for all session or all transaction
List pgsql-hackers
On ons, 2009-09-02 at 10:59 -0430, Christian Gonzalez wrote:
> Is posible to put 
> persisten object in memory through postgresql c funtion?

Well, the PL/Perl and PL/Python languages do some variants of this using
their GD and SD variables.  So it's surely possible in C as well.
Memory contexts are the right keyword, but note that if you use
TopMemoryContext, you are pretty much just using malloc().  Maybe you
want to try prototyping your functionality in PL/Perl or PL/Python to
get it started.



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: remove flatfiles.c
Next
From: Robert Haas
Date:
Subject: Re: remove flatfiles.c