When PL/Perl is installed as 'untrusted' interpreter (with name 'plperlu'),
When PL/Perl is installed as <quote>untrusted</> interpreter (with name <literal>plperlu</literal>),
everything is permitted, and any perl code can be loaded (by superuser only).
everything is permitted, and any Perl code can be loaded (by superuser only).
</para>
</para>
<sect1 id="plperl-install">
<sect1 id="plperl-install">
...
@@ -170,13 +170,13 @@ CREATE FUNCTION badfunc() RETURNS integer AS '
...
@@ -170,13 +170,13 @@ CREATE FUNCTION badfunc() RETURNS integer AS '
The creation of the function will succeed, but executing it will not.
The creation of the function will succeed, but executing it will not.
Note that if same function was created by superuser using language
Note that if same function was created by superuser using language
'plperlu', execution would succeed.
<literal>plperlu</>, execution would succeed.
</para>
</para>
<para>
<para>
Access to database itself from your perl function can be done via
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
an experimental module <ulink url="http://www.formenos.org/PgSPI/"><literal>DBD::PgSPI</literal></ulink>. This module makes available a <acronym>DBI</>-compliant
database-handle named $pg_dbh, and you can use that to make queries with
database-handle named <varname>$pg_dbh</varname>, and you can use that to make queries with