Re: Dynamic loading of Perl Code in Postgres functions

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Dynamic loading of Perl Code in Postgres functions
Дата
Msg-id
26320.1168983160@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions "Adam Rich" <adam.r@sbcglobal.net>
Re: Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions John DeSoi <desoi@pgedit.com>
Re: Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions John DeSoi <desoi@pgedit.com>
Re: Dynamic loading of Perl Code in Postgres functions "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Dynamic loading of Perl Code in Postgres functions "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Dynamic loading of Perl Code in Postgres functions "Jasbinder Singh Bali" <jsbali@gmail.com>
"Harpreet Dhaliwal"  writes:
> I was just wondering if one could use something like this

> CREATE FUNCTION *funcname* (*argument-types*) RETURNS *return-type* AS $$
>     require "abc.pl"
> $$ LANGUAGE plperl;

You'd have to use plperlu, since "require" isn't considered a trusted
operation.

> To include abc.pl here, how is the path of abc.pl specified.

Same as you'd do it in plain Perl.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Nathan Bell
Дата:
Сообщение: 8.1 vs 8.2.1 view optimization
От: Tom Lane
Дата:
FAQ