Besides what Pavel said about not returning a result there is another issue with the above. It did not specify a language. I cleaned the function up a bit:
The lack of a language is not a problem since the command definition makes it explicitly optional and defaulting to PLPGSQL.
David J.