Re: Calling an external command via triggers

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Calling an external command via triggers
Date: 2008-08-08 07:55:06
Message-ID: 20080808075506.GA30348@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Peter Jackson 2008-08-08 12:58:41 join group by etc
Previous Message Ridvan Lakas ng Bayan S. Baluyos 2008-08-08 06:22:43 Calling an external command via triggers