| From: | Stephen Frost <sfrost(at)snowman(dot)net> |
|---|---|
| To: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: REVIEW: WIP: plpgsql - foreach in |
| Date: | 2011-01-29 11:50:07 |
| Message-ID: | 20110129115007.GI30352@tamriel.snowman.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
* Itagaki Takahiro (itagaki(dot)takahiro(at)gmail(dot)com) wrote:
> On Mon, Jan 24, 2011 at 13:05, Stephen Frost <sfrost(at)snowman(dot)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 ...
I don't really see why that's "not good"? So you have 'ARRAY' twice..
So what? That's better than having a new top-level FOREACH that doesn't
have any reason to exist except to be different from FOR and to not do
the same thing..
Thanks,
Stephen
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephen Frost | 2011-01-29 11:57:16 | Re: REVIEW: WIP: plpgsql - foreach in |
| Previous Message | Magnus Hagander | 2011-01-29 11:12:55 | Snapshots no longer build |