"Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il> writes:
> How can I RETURN from within a function the number of deleted rows ?
In plpgsql, use GET DIAGNOSTICS - see bottom of
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/plpgsql-statements.html
regards, tom lane