Re: ON INSERT => execute AWK/SH/EXE?

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: ON INSERT => execute AWK/SH/EXE?
Дата
Msg-id 3CB6C4A5-0FAB-4E32-9491-1CF7806A81C4@myemma.com
обсуждение исходный текст
Ответ на ON INSERT => execute AWK/SH/EXE?  ("Bima Djaloeis" <bima.djaloeis.uni@googlemail.com>)
Список pgsql-general
On Sep 17, 2007, at 11:50 AM, Bima Djaloeis wrote:

> Hi there,
>
> I am new to PostgreSQL, is it possible to create something so that
>
> 1) If I insert / update / delete an item from my DB...
> 2) ... an awk / shell / external program is executed in my UNIX
> System?
>
> If yes, how do I do this and if no, thanks for telling.
>
> Thanks for reading, any help is appreciated.

You could use a trigger function in an untrusted procedural language
such as plperlu or plpythonu to do that.

Erik Jones

Software Developer | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com



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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: ON INSERT => execute AWK/SH/EXE?
Следующее
От: Steve Crawford
Дата:
Сообщение: Optimizing "exists"