cant write to file within call handler interface - Mailing list pgsql-hackers

From Sibtay Abbas
Subject cant write to file within call handler interface
Date
Msg-id 20041214183142.19773.qmail@web50007.mail.yahoo.com
Whole thread Raw
Responses Re: cant write to file within call handler interface
Re: cant write to file within call handler interface
List pgsql-hackers
hello

i am not able to write to file until the pl call
handler interface. this is the template which i am
following

PG_FUNCTION_INFO_V1(my_call_handler);

Datum
my_call_handler(PG_FUNCTION_ARGS)
{...my code...
int fd = open("filename",O_WRONLY);write(fd,buffer,strlen(buffer) + 1);
//fsync(fd).......i tried this as well but                   did'nt work

}


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: V8.0rc1 On AIX.
Next
From: Bruce Momjian
Date:
Subject: Re: V8.0rc1 On AIX.