X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0D4CD475E14 for ; Tue, 8 Apr 2003 12:28:44 -0400 (EDT) Received: from bitoek.uni-bayreuth.de (bti0x1.bitoek.uni-bayreuth.de [132.180.112.2]) by postgresql.org (Postfix) with ESMTP id DF18947592C for ; Tue, 8 Apr 2003 12:28:42 -0400 (EDT) Received: from bitoek.uni-bayreuth.de (bti0x027.bitoek.uni-bayreuth.de [132.180.112.27]) by bitoek.uni-bayreuth.de (8.11.6/8.11.3) with ESMTP id h38GScE10864; Tue, 8 Apr 2003 18:28:38 +0200 Message-ID: <3E92F8B4.6040909@bitoek.uni-bayreuth.de> Date: Tue, 08 Apr 2003 18:28:36 +0200 From: Stefan Holzheu User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021130 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Problems with C Language Functions after upgrade to 7.3.2 References: <3E92DB6E.50404@bitoek.uni-bayreuth.de> <26878.1049813369@sss.pgh.pa.us> In-Reply-To: <26878.1049813369@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-Spam-Status: No, hits=-39.2 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1, REFERENCES,REPLY_WITH_QUOTES,SIGNATURE_LONG_DENSE, USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/98 X-Sequence-Number: 8253 Thank, for the fast response >>In 7.1.3 triggers worked fine. With 7.3.2 triggers work in most cases >>but in some cases execution fails at fork or exec. > > Fails how? What's the error code exactly? fork: errno 2 /* No such file or directory */ exec: errno 11 /* Try again */ > > The notion of running external programs from a trigger strikes me as a > really bad idea in any case. (What happens if the transaction gets > rolled back later? You won't be able to undo whatever the external > program did.) That's true, and we are aware of this problem. But it is still better to have the database to do this than a web server. Would you prefere to use a normal function? Thanks in advance Stefan > But I don't know any reason why it would work less well > now than in 7.1. > > regards, tom lane > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > -- ----------------------------- Dr. Stefan Holzheu Tel.: 0921/55-5720 Fax.: 0921/55-5799 BITOeK Wiss. Sekretariat Universitaet Bayreuth D-95440 Bayreuth -----------------------------