title: Postgresql function return affected row count
body: <p>I created a function. I defined returning value void. But I want to show affected row count. How can I do? </p>
  
  <pre><code>CREATE OR REPLACE FUNCTION update() RETURNS void  AS 
  $BODY$
  BEGIN
     update test_a set name='cde' where name='abc';
     update test_b set name='mno' where name='klm';
  END;
  $BODY$   
  LANGUAGE plpgsql VOLATILE   
  COST 100; 
  ALTER FUNCTION update()   
  OWNER TO postgres;
  </code></pre>