Re: c extension

From: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: c extension
Date: 2004-11-03 16:19:45
Message-ID: 200411031719.45045.kjetil.haaland@student.uib.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wednesday 03 November 2004 15:58, Joe Conway wrote:
>It doesn't look like that palloc is done in a sufficiently long-lived
>memory context. Read up on them in src/backend/utils/mmgr/README.

Many thanks for good answer. I have also allocated memory for a table of
integers in the same file, and this table seems to work fine, i can print out
values from it without any problems.

Is there any good reason it should work with integers and not with characters?

In what memory context should it be created to last until the user logs out?

-Kjetil

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Joe Conway 2004-11-03 16:42:40 Re: c extension
Previous Message Raphael Bauduin 2004-11-03 15:36:54 Re: building a row with a plpgsql function