Re: Generating table rows from arrays

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Generating table rows from arrays
Date: 2008-07-17 11:44:24
Message-ID: 82sku8buqv.fsf@mid.bfk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

* Richard Huxton:

>> The first row is constant. I could write a loop with PL/pgsql, I
>> guess, but I wonder if there are better options nowadays.
>
> The smallest function I've seen is Merlin Moncure's here:
>
> http://people.planetpostgresql.org/merlin/index.php?/archives/4-fun-with-arrays.html

Ah, neat trick. Thanks.

--
Florian Weimer <fweimer(at)bfk(dot)de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alvaro Herrera 2008-07-17 16:16:54 Re: pg_advisory_lock(bigint) vs. LOCK TABLE
Previous Message Oliveiros Cristina 2008-07-17 11:18:18 Re: How to GROUP results BY month