If it is installed into template1, all future databases will have
the language installed automatically.
...
...
@@ -157,6 +168,15 @@ CREATE FUNCTION badfunc() RETURNS integer AS '
' LANGUAGE 'plperl';
</programlisting>
The creation of the function will succeed, but executing it will not.
Note that if same function was created by superuser using language
'plperlu', execution would succeed.
</para>
<para>
Access to database itself from your perl function can be done via
an experimental module DBD::PgSPI, available at <ulink url="http://www.formenos.org/PgSPI/">this site</ulink>. This module makes available a DBI-compliant
database-handle named $pg_dbh, and you can use that to make queries with