From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems with C Language Functions after upgrade to 7.3.2
Date: Tue, 08 Apr 2003 10:49:29 -0400
Message-ID: <26878.1049813369@sss.pgh.pa.us> (raw)
In-Reply-To: <3E92DB6E.50404@bitoek.uni-bayreuth.de>
References: <3E92DB6E.50404@bitoek.uni-bayreuth.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, stefan.holzheu@bitoek.uni-bayreuth.de
Subject: Re: Problems with C Language Functions after upgrade to 7.3.2
In-Reply-To: <26878.1049813369@sss.pgh.pa.us>
References: <3E92DB6E.50404@bitoek.uni-bayreuth.de> <26878.1049813369@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox