Re: updated patch for foreach stmt
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Robert Haas <robertmhaas@gmail.com>, Stephen Frost <sfrost@snowman.net>, Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Takahiro Itagaki <itagaki.takahiro@gmail.com>
Date: 2011-02-16T04:29:39Z
Lists: pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes: > On 02/15/2011 08:59 PM, Robert Haas wrote: >> Anyhoo, forcing the explicit ARRAY keyword in there seems like pretty >> cheap future-proofing to me. YMMV. > If this is the syntax that makes you do things like: > FOREACH foo IN ARRAY ARRAY[1,2,3] > I have to say I find that pretty darn ugly still. Yeah, that was the argument against requiring ARRAY. So it comes down to whether you think we need future-proofing here. I can't immediately see any reason for us to need a keyword right there, but ... regards, tom lane