Re: Shared Objects (Dynamic loading)

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Shared Objects (Dynamic loading)
Дата
Msg-id 20060826201031.GA46204@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Shared Objects (Dynamic loading)  ("Jasbinder Bali" <jsbali@gmail.com>)
Ответы Re: Shared Objects (Dynamic loading)  ("Jasbinder Bali" <jsbali@gmail.com>)
Список pgsql-general
On Sat, Aug 26, 2006 at 03:32:37PM -0400, Jasbinder Bali wrote:
> Do we have any concept of shared objects in perl.
> Just wondering, how do we dynamically load something written in perl in
> postgresql.

A PL/Perl function can load external code with "use", "require",
or "do".  Since those are potentially dangerous operations you'll
need to create the function with plperlu, which means you'll need
to create the function as a database superuser.  See "Trusted and
Untrusted PL/Perl" in the documentation for more information.

http://www.postgresql.org/docs/8.1/interactive/plperl-trusted.html

Regarding "use", "require", and "do" see the Perl documentation,
in particular the perlfunc and perlmod manual pages.

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: "Silvela, Jaime \(Exchange\)"
Дата:
Сообщение: Re: mising chunk
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Content of pg_class.relacl