Re: Proposal: plpgsql - "for in array" statement - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: Proposal: plpgsql - "for in array" statement
Date
Msg-id AANLkTi=PHqd9RYMLo1hn-vVgiO0tDoK5=ywZcsVYmeFj@mail.gmail.com
Whole thread Raw
In response to Proposal: plpgsql - "for in array" statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Proposal: plpgsql - "for in array" statement
List pgsql-hackers
On Tue, Sep 28, 2010 at 3:24 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> I looked on some constructs that helps with iteration over array in
> plpgsql. I propose a following syntax:
>
> FOR var IN [array variable | array expression]

What is the benefits compared with
FOR ... IN SELECT unnest(array) or generate_subscripts(array) ?

-- 
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Help with User-defined function in PostgreSQL with Visual C++
Next
From: Pavel Stehule
Date:
Subject: Re: Proposal: plpgsql - "for in array" statement