Re: Calling an external command via triggers - Mailing list pgsql-novice

From A. Kretschmer
Subject Re: Calling an external command via triggers
Date
Msg-id 20080808075506.GA30348@a-kretschmer.de
Whole thread Raw
In response to Calling an external command via triggers  ("Ridvan Lakas ng Bayan S. Baluyos" <ridvan@baluyos.net>)
List pgsql-novice
am  Fri, dem 08.08.2008, um 14:22:43 +0800 mailte Ridvan Lakas ng Bayan S. Baluyos folgendes:
> Hi All,
>
> Is it possible for me to call a certain command in the terminal via a trigger?

Not really. You should better use LISTEN/NOTIFY.
>
> Say for example, after every INSERT in a certain table, I would be calling a
> script `php load.php` ?

What happens if the 'load.php' fails? Rollback the insert?


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-novice by date:

Previous
From: "Ridvan Lakas ng Bayan S. Baluyos"
Date:
Subject: Calling an external command via triggers
Next
From: Peter Jackson
Date:
Subject: join group by etc