X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A6866475FBA for ; Tue, 8 Apr 2003 10:49:28 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id D0755475F3D for ; Tue, 8 Apr 2003 10:49:27 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h38EnU2L026879; Tue, 8 Apr 2003 10:49:30 -0400 (EDT) To: Stefan Holzheu Cc: pgsql-admin@postgresql.org Subject: Re: Problems with C Language Functions after upgrade to 7.3.2 In-reply-to: <3E92DB6E.50404@bitoek.uni-bayreuth.de> References: <3E92DB6E.50404@bitoek.uni-bayreuth.de> Comments: In-reply-to Stefan Holzheu message dated "Tue, 08 Apr 2003 16:23:42 +0200" Date: Tue, 08 Apr 2003 10:49:29 -0400 Message-ID: <26878.1049813369@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES 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/91 X-Sequence-Number: 8246 Stefan Holzheu writes: > Last friday we did an upgrade from postgres 7.1.3 to 7.3.2. In the > database there are triggers written in C, which start external programs > using the system calls fork+exec. > 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? 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.) But I don't know any reason why it would work less well now than in 7.1. regards, tom lane