cant write to file within call handler interface

From: Sibtay Abbas <sibtay_abbas(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: cant write to file within call handler interface
Date: 2004-12-14 18:31:41
Message-ID: 20041214183142.19773.qmail@web50007.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-12-14 18:51:24 Re: V8.0rc1 On AIX.
Previous Message Peter Eisentraut 2004-12-14 18:18:42 Re: V8.0rc1 On AIX.