Re: Bug #701: pqReadData() -- backend closed the channel unexpectedly. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #701: pqReadData() -- backend closed the channel unexpectedly.
Date
Msg-id 16292.1025395278@sss.pgh.pa.us
Whole thread Raw
In response to Bug #701: pqReadData() -- backend closed the channel unexpectedly.  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> [ this trigger crashes the backend: ]

> void users()
> {
>         FILE *fp;
>         fp = fopen("/home/suresh/trigger/test.txt","w");
>         fputs("Hello this is c function",fp);
> }

Triggers are supposed to return something --- especially BEFORE
triggers.  See the examples in the manual.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Bug #701: pqReadData() -- backend closed the channel
Next
From: "Alfredo"
Date:
Subject: How can I unsuscribe me from the list?