Re: Howto create a plperlu function as user (not superuser)??

Поиск
Список
Период
Сортировка
От Brent Wood
Тема Re: Howto create a plperlu function as user (not superuser)??
Дата
Msg-id 20050915154809.J23993@storm-user.niwa.co.nz
обсуждение исходный текст
Ответ на Re: Howto create a plperlu function as user (not superuser)??  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

On Wed, 14 Sep 2005, Tom Lane wrote:

> Brent Wood <b.wood@niwa.co.nz> writes:
> > That is not me. Sigh. Is there any way I can develop (with the various
> > "create or replace function" iterations this wiil probably require) this
> > plperlu function as a non superuser?
>
> If you could, it would be a security hole, which we would fix with
> utmost alacrity.  Untrusted-language functions may only be created
> by superusers.

Pretty much what I expected but figured I'd ask :-)

>
> Can you compartmentalize the depth-accessing function as a small
> plperlu function, and do all the interesting stuff in plain plperl
> atop that?
>

Much of the preprocessing required is in plpgsql using PostGIS functions.

The whole Perl thing is only about 10 lines long so not worth splitting if
avoidable. The depth accessing command is a one line system call with
coords as parameters. The rest just builds a bounding box for the point
location so that the call to GMT restricts it's access to the terrain
model to a few square degrees worth of data and not the entire few Gb :-)
A bit faster that way!


One option is another system with Postgres/PostGIS where I am superuser &
can develop, then get the superuser of the working database to run the
SQL's for me to create the functions. Or see if the situation can justify
me getting superuser status. Working with code can be easier than
wrestling with beauracracy :-)


Thanks,

  Brent

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

Предыдущее
От: Alexander Neumann
Дата:
Сообщение: Strange Bug in exim4 postgresql lookup code or libpq?
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: TSearch2 snowball version error