"Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> Aggregates sound interesting, though I'm not sure how useful they'd
> actually be. I think something like
> FOR v_row IN (UPDATE ... RETURNING ...)
> would be a lot more useful (if it's not already in the patch).
It's not. I thought about it for a bit but there are some nasty gotchas
if the planner decides it needs to rescan the subquery multiple times.
I'd say that's something to leave for 8.3 ...
regards, tom lane