|PostgreSQL Reference Manual - Volume 2 - Programming Guide|
by The PostgreSQL Global Development Group
Paperback (6"x9"), 408 pages
RRP £19.95 ($34.95)
Sales of this book support the PostgreSQL project! Get a printed copy>>>
11 PL/Perl - Perl Procedural Language
PL/Perl is a loadable procedural language that enables you to write PostgreSQL functions in the Perl programming language.
The usual advantage to using PL/Perl is that this allows use, within stored functions, of the manyfold “string munging” operators and functions available for Perl. Parsing complex strings may be easier using Perl than it is with the string functions and control structures provided in PL/pgSQL.
To install PL/Perl in a particular database, use
createlang plperl dbname.
Tip: If a language is installed into
template1, all subsequently created databases will have the language installed automatically.
Note: Users of source packages must specially enable the build of PL/Perl during the installation process. (Refer to Volume 3: Short Version for more information.) Users of binary packages might find PL/Perl in a separate subpackage.
|ISBN 0954612035||PostgreSQL Reference Manual - Volume 2 - Programming Guide||See the print edition|