Re: Problems with C Language Functions after upgrade to 7.3.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stefan Holzheu <stefan(dot)holzheu(at)bitoek(dot)uni-bayreuth(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problems with C Language Functions after upgrade to 7.3.2
Date: 2003-04-08 14:49:29
Message-ID: 26878.1049813369@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Stefan Holzheu <stefan(dot)holzheu(at)bitoek(dot)uni-bayreuth(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2003-04-08 14:50:22 Re: upgrade
Previous Message Robert Treat 2003-04-08 14:48:08 Re: [ADMIN] function to determine size of a table (or even row)