Re: Writing SRF - Mailing list pgsql-general

From Tom Lane
Subject Re: Writing SRF
Date
Msg-id 9346.1272487424@sss.pgh.pa.us
Whole thread Raw
In response to Re: Writing SRF  (Jorge Arevalo <jorgearevalo@gis4free.org>)
Responses Re: Writing SRF  (Jorge Arevalo <jorgearevalo@gis4free.org>)
List pgsql-general
Jorge Arevalo <jorgearevalo@gis4free.org> writes:
> My doubt is if I'm doing things right getting all the stuff I need (an
> array) in the first call, pointing user_fctx to this array and
> accessing myStructsArray[call_cntr] in each successive call, until
> myStructsArray + call_cntr == NULL (last array element?).

Sounds reasonable enough.  Is it not working for you?  Maybe you need
to be careful about which memory context the array is created in.

            regards, tom lane

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Populate arrays from multiple rows
Next
From: ๏̯͡๏ Guido Barosio
Date:
Subject: Re: [pgsql-es-ayuda] Sobre PGday Latinoamericano 2011...