Andrew Dunstan <[EMAIL PROTECTED]> writes: > Pavel Stehule wrote: >> I looked into SQL2003, and SQL2003 knows it (SQL/PSM): >> >> <assignment statement> ::= >> <singleton variable assignment> >> | <multiple variable assignment> >> <multiple variable assignment> ::= >> SET <assignment target list> <equals operator> <assigned row> >> <assignment target list> ::= >> <left paren> <assignment target> [ { <comma> <assignment target> >> }... ] <right paren> >> <singleton variable assignment> ::= >> SET <assignment target> <equals operator> <assignment source>
> The parentheses are apparently required for multiple variables, so in > our case it might look like this: > (a,b,c) := foo(bar); More to the point, a SET keyword is required too by that standard. I concur with the other comment that plpgql is intended to mimic Oracle PL/SQL, not SQL/PSM. If we try to follow two different leads we are likely to find ourselves with a mess. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq