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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Christian Gonzalez <christian(dot)gonzalez(at)sigis(dot)com(dot)ve>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: c function: keep objects in memory for all session or all transaction
Date: 2009-09-02 18:29:29
Message-ID: 1251916169.30166.1.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-09-02 18:31:26 Re: remove flatfiles.c
Previous Message Tom Lane 2009-09-02 18:14:08 Re: Linux LSB init script