Re: Writing SRF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jorge Arevalo <jorgearevalo(at)gis4free(dot)org>
Cc: PostgreSQL - General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Writing SRF
Date: 2010-04-29 18:03:21
Message-ID: 15995.1272564201@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jorge Arevalo <jorgearevalo(at)gis4free(dot)org> writes:
> Many thanks! That was one of my errors. Another one was this:

> char szDataPointer[10];
> sprintf(szDataPointer, "%p", a_pointer);

> These lines caused a memory error.

That looks all right in itself (unless you're on a 64-bit machine, in
which case you need a bigger array to hold %p output). However the
array would only live as long as the function it's in. What were you
doing with the data afterwards, returning it maybe?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin Graf 2010-04-29 18:07:31 Re: Storing many big files in database- should I do it?
Previous Message David Wall 2010-04-29 17:51:53 Re: Storing many big files in database- should I do it?