Re: Triggers cause backend crash

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Triggers cause backend crash
Дата
Msg-id 2455.1004475039@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Triggers cause backend crash  ("Andras Belokosztolszki" <beland1@hotmail.com>)
Список pgsql-bugs
"Andras Belokosztolszki" <beland1@hotmail.com> writes:
> <DIV> 
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">Hi, I have a problem (I wrote
aboutit before, but here is a complete example). When I have two triggers with parameters the backend crashes after a
certainsequence of invocations. Attached are two very simple triggers in C (they might contain some unnecessary lines,
theyare a stripped version of an application I'm working on), how to compile, how to bootstrap, ... how to crash the
backend<BR></SPAN></P>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">Postgresql info:</SPAN></P><SPAN
lang=EN-USstyle="mso-fareast-font-family: 'MS Mincho'"><FONT size=2> 
> <P>PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.95.3</P></FONT></SPAN>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">A sample makefile (extract from
mine)</SPAN></P>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'"> </P>
>  [etc]


Please don't use HTML for email.

I think your problem is that you've omitted the
PG_FUNCTION_INFO_V1() macro call that's needed to mark these functions
as version-1 calling convention.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Porting issue with openssl and no /dev/random
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #504: multiple cursors cause transaction problems