"Michal szymanski" <szymanskim(at)datera(dot)pl> writes:
> Description: FOUND variable does not work after RETURN QUERY
The list of statements that set FOUND is here:
http://www.postgresql.org/docs/8.3/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
RETURN isn't one of them.
regards, tom lane