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

From Tom Lane
Subject Re: Proposal: plpgsql - "for in array" statement
Date
Msg-id 28534.1285706277@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal: plpgsql - "for in array" statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Proposal: plpgsql - "for in array" statement
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2010/9/28 Tom Lane <tgl@sss.pgh.pa.us>:
>> Yes, there is.  The syntax you propose is flat out ambiguous: there are
>> two possible legal interpretations of some commands.

> what are you thinking? The subquery cannot be interpreted different.

Sure it can: it could be a parenthesized top-level query.  In fact,
that's what plpgsql will assume if you feed it that syntax today.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal: plpgsql - "for in array" statement
Next
From: Pavel Stehule
Date:
Subject: Re: Proposal: plpgsql - "for in array" statement