Be default PL/PGSQL is not installed in each database. You must type
createlang --host=hostname --port=5432 --username=postgres --dbname=yourdb--pglib=$PGLIB plpgsql yourdb
To verify type
createlang -l yourdb
--Raymond