Re: Constructing array

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Constructing array
Date: 2008-03-02 23:15:50
Message-ID: 25006.1204499750@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> 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)

If you can build it in one swoop, use construct_array(). If you need
to build it incrementally then things will be much more painful...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2008-03-03 00:23:45 Re: Constructing array
Previous Message Bruce Momjian 2008-03-02 21:36:14 Re: Strange behavior with leap dates and centuries BC