Re: Problems with C Language Functions after upgrade to 7.3.2 - Mailing list pgsql-admin

From Tom Lane
Subject Re: Problems with C Language Functions after upgrade to 7.3.2
Date
Msg-id 26878.1049813369@sss.pgh.pa.us
Whole thread Raw
In response to Problems with C Language Functions after upgrade to 7.3.2  (Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de>)
Responses Re: Problems with C Language Functions after upgrade to 7.3.2
List pgsql-admin
Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de> 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


pgsql-admin by date:

Previous
From: "Victor Yegorov"
Date:
Subject: Re: upgrade
Next
From: Robert Treat
Date:
Subject: Re: upgrade