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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: c function: keep objects in memory for all session or all transaction
Дата
Msg-id 1251916169.30166.1.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на c function: keep objects in memory for all session or all transaction  (Christian Gonzalez <christian.gonzalez@sigis.com.ve>)
Ответы Re: c function: keep objects in memory for all session or all transaction
Список 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 по дате отправления: