Author: Matt Jones <mjones(at)bu(dot)edu>----James, you need run createlang on the database, su postgrescreatelang plpgsql databasename----Manual page: http://wwwmaster.postgresql.org/docs/7.4/interactive/plpgsql.htmlReject: http://wwwmaster.postgresql.org/admin/comments.php?action=reject&id=1988Edit: http://wwwmaster.postgresql.org/admin/comment-edit.php?id=1988Delete: http://wwwmaster.postgresql.org/admin/comments.php?action=delete&id=1988