Josh Berkus <josh@agliodbs.com> writes:
> Now, testing how many rows were inserted/updated/deleted ... that I'm
> not sure about. It would be nice to have a ROWS_AFFECTED returned from
> a data manipulation query in PL/pgSQL, but I don't believe that that has
> been implemented.
It has as of 7.1 --- see GET DIAGNOSTICS foo = ROW_COUNT.
regards, tom lane