System Administrator's Guide/Enabling Plpgsql

If your database has been configured without plpgsql as a trusted language, and you are installing or upgrading to Mahara 1.5, you will need to ensure the plpgsql language is available in your Mahara database.