Re: REVIEW: WIP: plpgsql - foreach in - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: REVIEW: WIP: plpgsql - foreach in
Date
Msg-id AANLkTim61=hWqyttQK0oDG9NPosFwZix8eJs7jEaUZ0u@mail.gmail.com
Whole thread Raw
In response to Re: REVIEW: WIP: plpgsql - foreach in  (Stephen Frost <sfrost@snowman.net>)
Responses Re: REVIEW: WIP: plpgsql - foreach in
List pgsql-hackers
On Mon, Jan 24, 2011 at 13:05, Stephen Frost <sfrost@snowman.net> wrote:
> FOR var in ARRAY array_expression ...
>
> I like that a lot more than inventing a new top-level keyword,

AFAIR, the syntax is not good at an array literal. FOR var IN ARRAY ARRAY[1,2,5] LOOP ...
And it was the only drawback compared with FOREACH var IN expr.

-- 
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: SSI patch version 14
Next
From: Dimitri Fontaine
Date:
Subject: Re: Extensions support for pg_dump, patch v27