Skip site navigation (1) Skip section navigation (2)

Re: C Function Problem for bytea output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vishal saberwal <vishalsaberwal(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C Function Problem for bytea output
Date: 2005-12-28 20:02:07
Message-ID: 21413.1135800127@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
vishal saberwal <vishalsaberwal(at)gmail(dot)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

In response to

Responses

pgsql-general by date

Next:From: Tom LaneDate: 2005-12-28 20:10:24
Subject: Re: Queries never returning...
Previous:From: Tom LaneDate: 2005-12-28 19:58:40
Subject: Re: [GENERAL] Running with fsync=off

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group