[GENERAL] formatting the output of a function

2007-06-06 Thread Islam Hegazy
at), "%.5f", result); HeapTuple data; Datum finalResult; data = BuildTupleFromCStrings(attinmeta, output); finalResult = HeapTupleGetDatum(data); SRF_RETURN_NEXT(funcctx, finalResult); --- Any idea what could be the cause of this error? Regards Islam Hegazy

Re: [GENERAL] debugging C functions

2007-06-04 Thread Islam Hegazy
ive until the SRF is finished running'. I don't understand this statement so I created the variables as static but it is not working with struct Regards Islam Hegazy - Original Message - From: "Gregory Stark" <[EMAIL PROTECTED]> To: "Islam Hegazy

Re: [GENERAL] debugging C functions

2007-06-04 Thread Islam Hegazy
Yes, I am sure. If I placed a breakpoint in any file, e.g. execMain.c, the debugger would enter this file. Islam Hegazy - Original Message - From: "Gregory Stark" <[EMAIL PROTECTED]> To: "Islam Hegazy" <[EMAIL PROTECTED]> Cc: "Tom Lane"

Re: [GENERAL] debugging C functions

2007-06-03 Thread Islam Hegazy
there any steps missing? Regards Islam Hegazy - Original Message - From: "Tom Lane" <[EMAIL PROTECTED]> To: "Islam Hegazy" <[EMAIL PROTECTED]> Cc: "Joe Conway" <[EMAIL PROTECTED]>; Sent: Sunday, June 03, 2007 10:00 PM Subject: Re: [GEN

Re: [GENERAL] debugging C functions

2007-06-03 Thread Islam Hegazy
I defined them as static to be preserved between calls, my function returns a set of records. When I comment the pointers portion, the function works well. But with the pointers, it hangs. Any idea on how to deal with pointers issue? Regards Islam Hegazy - Original Message - From:

[GENERAL] debugging C functions

2007-06-01 Thread Islam Hegazy
Hi there I wrote a C function to call from PostgreSQL8.2.4 under Linux. The functions returns unexpected results. I did an extensive analysis to the function and it seems correct. I want to know if there is a way to debug C functions that are passed to PostgreSQL. Thanks Islam

[GENERAL] initializing the database cluster

2007-05-21 Thread Islam Hegazy
Any idea of what could be the problem? Regards Islam Hegazy

Re: [GENERAL] C functions under windows

2007-05-03 Thread Islam Hegazy
- Original Message - From: "Andrei Kovalevski" <[EMAIL PROTECTED]> To: ; "Islam Hegazy" <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2007 7:32 AM Subject: Re: [GENERAL] C functions under windows Islam Hegazy wrote: Hi all I have postgresql server installed on

[GENERAL] C functions under windows

2007-05-02 Thread Islam Hegazy
he windows machine like . I tested my functions on another server installed on a linix machine and it worked correctly. So the problem appears to be in the include files under windows. Any idea how to solve this problem... Regards Islam Hegazy