System Administrator's Guide/Enabling Plpgsql: Difference between revisions
From Mahara Wiki
< System Administrator's Guide
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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. | 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. | ||
== Enable PL/pgSQL using the psql terminal client == | |||
The following commands can be used in your psql database client: | |||
CREATE TRUSTED LANGUAGE plpgsql; | CREATE TRUSTED LANGUAGE plpgsql; | ||
Line 7: | Line 11: | ||
(Tested on Red Hat Enterprise Linux 5.8, PostgreSQL 8.1.23) | (Tested on Red Hat Enterprise Linux 5.8, PostgreSQL 8.1.23) | ||
== Enable PL/pgSQL using the createlang program == | |||
Alternatively, you can use the createlang utility that comes with Postgres. For instructions on how to use createlang, see the relevant page of the Postgres manual: Version [http://www.postgresql.org/docs/8.3/static/app-createlang.html 8.3] | |||
[http://www.postgresql.org/docs/8.4/static/app-createlang.html 8.4] | |||
[http://www.postgresql.org/docs/9.0/static/app-createlang.html 9.0] |
Latest revision as of 16:49, 27 March 2012
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.
Enable PL/pgSQL using the psql terminal client
The following commands can be used in your psql database client:
CREATE TRUSTED LANGUAGE plpgsql; GRANT USAGE ON LANGUAGE plpgsql TO <mahara_db_user>;
Replace <mahara_db_user> with the user that mahara connects to the db with.
(Tested on Red Hat Enterprise Linux 5.8, PostgreSQL 8.1.23)
Enable PL/pgSQL using the createlang program
Alternatively, you can use the createlang utility that comes with Postgres. For instructions on how to use createlang, see the relevant page of the Postgres manual: Version 8.3 8.4 9.0