Re: Problems with C Language Functions after upgrade to 7.3.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with C Language Functions after upgrade to 7.3.2
Дата
Msg-id 26878.1049813369@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problems with C Language Functions after upgrade to 7.3.2  (Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de>)
Ответы Re: Problems with C Language Functions after upgrade to 7.3.2  (Stefan Holzheu <stefan.holzheu@bitoek.uni-bayreuth.de>)
Список 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 по дате отправления:

Предыдущее
От: "Victor Yegorov"
Дата:
Сообщение: Re: upgrade
Следующее
От: Robert Treat
Дата:
Сообщение: Re: upgrade