Re: Constructing array

From: Joe Conway <mail(at)joeconway(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Constructing array
Date: 2008-03-03 00:23:45
Message-ID: 47CB4511.4010103@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander wrote:
> Hi!
>
> Does anybody have a good pointer for an example of how to construct an
> array in a SRF? Or if not such a pointer, hints on which way is best to
> do it? (it'll be an array of text strings, one-dimensional)
>
> (This is from C, if that's not obvious)

I'm sure there are other good examples, but one possibility is to look
at pg_conversion.c in PL/R source. Start with get_array_datum().

HTH,

Joe

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavan Deolasee 2008-03-03 06:30:50 Re: Read-ahead and parallelism in redo recovery
Previous Message Tom Lane 2008-03-02 23:15:50 Re: Constructing array