BTW is there a reason the error messages say "plpgsql functions cannot..." instead of "PL/pgSQL functions cannot ..."?
-- Alvaro Herrera http://www.CommandPrompt.com/PostgreSQL Replication, Consulting, Custom Development, 24x7 support