"Jan Szumiec" <[EMAIL PROTECTED]> writes: > UPDATE items SET (type, post_id) = (INSERT INTO efforts (effort) VALUES > (667) RETURNING 'Item', id) WHERE id = 1937
Sorry, RETURNING is only supported at the top level of a query.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
