My database driver for PostgreSQL 8/9 does not return a count of records affected when executing INSERT or UPDATE.
INSERT
UPDATE
PostgreSQL offers the n
I agree w/ Milen, your driver should do this for you. What driver are you using and for what language? But if you are using plpgsql, you can use GET DIAGNOSTICS my_var = ROW_COUNT;
GET DIAGNOSTICS my_var = ROW_COUNT;
http://www.postgresql.org/docs/current/static/plpgsql-statements.html