Re: C Function Problem for bytea output - Mailing list pgsql-general

From vishal saberwal
Subject Re: C Function Problem for bytea output
Date
Msg-id 3e74dc250512281631w6082df8bmf9e6a6edbb8ce79@mail.gmail.com
Whole thread Raw
In response to Re: C Function Problem for bytea output  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
thanks tom,

yes it was fopen problem ... the problem was solved when i did chown postgres ...
i should have seen that ...

thanks,
vish

On 12/28/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
vishal saberwal <vishalsaberwal@gmail.com> writes:
> I believe its something in the function but i can't spot the error.

Well, that sure looks like a NULL result; have you considered the
possibility that the fopen is failing?

BTW, that code will happily clobber memory that doesn't
belong to it if the passed FileLength is wrong.

                        regards, tom lane

pgsql-general by date:

Previous
From: "Jonel Rienton"
Date:
Subject: Re: Final stored procedure question, for now anyway
Next
From: "Frank L. Parks"
Date:
Subject: Re: Final stored procedure question, for now anyway