From: Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems with C Language Functions after upgrade to 7.3.2
Date: Tue, 08 Apr 2003 18:28:36 +0200
Message-ID: <3E92F8B4.6040909@bitoek.uni-bayreuth.de> (raw)
In-Reply-To: <26878.1049813369@sss.pgh.pa.us>
References: <3E92DB6E.50404@bitoek.uni-bayreuth.de>
<26878.1049813369@sss.pgh.pa.us>
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
-----------------------------
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: stefan.holzheu@bitoek.uni-bayreuth.de, tgl@sss.pgh.pa.us
Subject: Re: Problems with C Language Functions after upgrade to 7.3.2
In-Reply-To: <3E92F8B4.6040909@bitoek.uni-bayreuth.de>
References: <3E92DB6E.50404@bitoek.uni-bayreuth.de> <26878.1049813369@sss.pgh.pa.us> <3E92F8B4.6040909@bitoek.uni-bayreuth.de>
* 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