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