Re: BUG #4515: UPDATE strange behavior - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4515: UPDATE strange behavior
Date
Msg-id 17921.1225980838@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4515: UPDATE strange behavior  ("xtron" <xtronz@yandex.ru>)
List pgsql-bugs
"xtron" <xtronz@yandex.ru> writes:
> this is NOT work:
> update a1 set a1.value = a2.value from a2 where a1.id = a2.id;

This syntax is disallowed by the SQL standard: a SET target is just the
name of the column.  If we tried to interpret it as you suggest then
we'd be incompatible for composite-type columns.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: plperl & sort
Next
From: Tomasz Ostrowski
Date:
Subject: Re: BUG #4514: Pi division error