Re: Execute Shell script after insert

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Execute Shell script after insert
Дата
Msg-id dcc563d10810271135v4b4879c1s61dea234745f2a6f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Execute Shell script after insert  (Hannes Dorbath <light@theendofthetunnel.de>)
Список pgsql-general
On Mon, Oct 27, 2008 at 12:21 PM, Hannes Dorbath
<light@theendofthetunnel.de> wrote:
> Anderson dos Santos Donda wrote:
>> Is there a way to execute a simple shell script in server after execute
>> INSERT INTO ?
>>
>> Example?
>>
>> INSERT INTO clients (name) VALUES ('Donda');
>>
>> after it, execute shell : mkdir $1
>
> You might find the following project useful:
>
> http://plsh.projects.postgresql.org/
>
> It adds sh as a procedural language to your PostgreSQL installation.
> Please be aware that there are the same security concerns as with all
> other untrusted procedural languages.

Note that if you can't get that to work (I think there were some
issues with it and the latest versions of pgsql) you use almost any
untrusted pl language to accomplish the same thing, plperlu, plphpu,
pltclu etc...

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

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: Re: Execute Shell script after insert
Следующее
От: Andreas Jochem
Дата:
Сообщение: Re: Execute Shell script after insert