From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | "I(dot) B(dot)" <i(dot)bre(at)live(dot)com> |
Cc: | dalroi(at)solfertje(dot)student(dot)utwente(dot)nl, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Persistence problem |
Date: | 2010-05-12 17:45:26 |
Message-ID: | 20100512174526.GA4554@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, May 12, 2010 at 07:12:10PM +0200, I. B. wrote:
>
> That was my first guess. I used palloc everywhere.. But to be sure, after I made the type, I tried to do the something like:
>
> mytype * result;
> mytype * realResult;
> result = createType(...);
> realResult = (mytype *)palloc(mytype->length);
> mempcy (realResult, result, result->length);
Did you define the type properly at SQL level? Is it a varlena type or
fixed length? Did you return it properly (as Datum)?
You're going to need to post more information before we can help you
usefully.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patriotism is when love of your own people comes first; nationalism,
> when hate for people other than your own comes first.
> - Charles de Gaulle
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Richardson | 2010-05-12 17:45:45 | SQLite (was: RE: Reliability of Windows versions 8.3 or 8.4) |
Previous Message | I. B. | 2010-05-12 17:12:10 | Re: Persistence problem |