Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1A7C8476385 for ; Fri, 11 Oct 2002 10:30:04 -0400 (EDT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id 7820747639D for ; Fri, 11 Oct 2002 10:30:03 -0400 (EDT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 1800nm-0003S5-0U; Fri, 11 Oct 2002 15:30:07 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id E5D3916AB6; Fri, 11 Oct 2002 15:19:23 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id 43EC416A9B; Fri, 11 Oct 2002 15:19:23 +0100 (BST) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: "Stian Riis" , Subject: Re: triggers Date: Fri, 11 Oct 2002 15:19:06 +0100 User-Agent: KMail/1.4.3 References: <000a01c2712c$d46e66e0$0200a8c0@dali> In-Reply-To: <000a01c2712c$d46e66e0$0200a8c0@dali> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210111519.06516.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/141 X-Sequence-Number: 9858 On Friday 11 Oct 2002 2:48 pm, Stian Riis wrote: > Hi. > > Does anyone know if it is posible to make a trigger that execute an > external program ? I want to execute a another program on the server > when I get a row in one of my tables... The customary way is to have a "helper" process that sits there LISTENing f= or=20 a NOTICE and then calls the external program as required. Cleaner and means= =20 the other program doesn't have any direct connection to the Postgresql=20 backend. - Richard Huxton