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

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Bima Djaloeis" <bima(dot)djaloeis(dot)uni(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: ON INSERT => execute AWK/SH/EXE?
Date: 2007-09-18 16:31:41
Message-ID: dcc563d10709180931n4e919288mc4e26223af8f36f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On 9/17/07, Bima Djaloeis <bima(dot)djaloeis(dot)uni(at)googlemail(dot)com> 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.

Yes. you have to use an untrusted pl language, like pl/perlu or
pl/tclu and you have to be a superuser to create user defined
functions in those languages.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2007-09-18 16:33:34 Re: ON INSERT => execute AWK/SH/EXE?
Previous Message Rodrigo De León 2007-09-18 16:31:21 Re: ON INSERT => execute AWK/SH/EXE?

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2007-09-18 16:33:34 Re: ON INSERT => execute AWK/SH/EXE?
Previous Message Rodrigo De León 2007-09-18 16:31:21 Re: ON INSERT => execute AWK/SH/EXE?