Re: Runnning operating system commands from an SPL

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Runnning operating system commands from an SPL
Дата
Msg-id 20100617153705.GA7512@tux
обсуждение исходный текст
Ответ на Re: Runnning operating system commands from an SPL  (Atif Jung <atifjung@gmail.com>)
Ответы Re: Runnning operating system commands from an SPL  (Atif Jung <atifjung@gmail.com>)
Список pgsql-novice
Atif Jung <atifjung@gmail.com> wrote:

> Sorry I don't understand. I am porting over some stored procedures from
> INFORMIX to POSTGRES. Some seem to port over OK, but the first problem I am
> encountering is the lack of SYSTEM command in POSTGRES.

That's right.

>
> I don't understand what you mean by using an untrusted programming language.

We have several internal languages, for instance plpgsql, plperl and
plperlu. Some of them are so called 'trusted languages', for instance
plpgsql. With a trusted language you can't operate outside the pg-system
(no access to the underlaying operating system), with untrusted
languages like plperlu you have access.


> The stored procedure is written in PL/pgSQL, are you suggesting to rewrite it
> in PERL, excuse me for my ignorance.

Right, if you really needs that. But you should reconsider your idea,
see Tom's answer.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: How to combine many rows into one row (by concatenation?) ?
Следующее
От: Tim Landscheidt
Дата:
Сообщение: Re: How to combine many rows into one row (by concatenation?) ?