Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group