Andrew Dunstan <and...@dunslane.net> writes: > On 12/17/2010 12:15 PM, Pavel Stehule wrote: >> The reason for this is bigger space for possible >> future features related to FOREACH loop.
> So what you're saying is we need to allow ugliness now so we can have > more ugliness in future? I don't find that a convincing argument. I > share the dislike for this syntax. Well, we did beat up Pavel over trying to shoehorn this facility into the existing FOR syntax, so I can hardly blame him for thinking this way. The question is whether we're willing to assume that FOREACH will be limited to iterating over arrays, meaning we'll be stuck with inventing yet another initial keyword if some other fundamentally different concept comes along. Right at the moment I can't think of any plausible candidates, but ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers