Re: Runnning operating system commands from an SPL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Runnning operating system commands from an SPL
Дата
Msg-id 4130.1276787732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Runnning operating system commands from an SPL  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-novice
Andreas Kretschmer <akretschmer@spamfence.net> writes:
> Atif Jung <atifjung@gmail.com> wrote:
>> How do I run an operating system command from a stored procedure? In INFORMIX I
>> would use the SYSTEM command, can't see to find the equivalent for POSTGRES.

> You can use a un-trusted programming language, for instance pl/perlu or
> plsh.

Keep in mind that more often than not the answer is "you shouldn't do
that".  Commands run in that way will execute as the postgres user,
not as your client user.

            regards, tom lane

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

Предыдущее
От: A B
Дата:
Сообщение: How to combine many rows into one row (by concatenation?) ?
Следующее
От: Atif Jung
Дата:
Сообщение: Re: Runnning operating system commands from an SPL