Re: Persistence problem - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Persistence problem
Date
Msg-id 20100512174526.GA4554@svana.org
Whole thread Raw
In response to Re: Persistence problem  ("I. B." <i.bre@live.com>)
Responses Re: Persistence problem
Re: Persistence problem
List 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
somethinglike: 
>
> 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@svana.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

Attachment

pgsql-general by date:

Previous
From: "I. B."
Date:
Subject: Re: Persistence problem
Next
From: "Rob Richardson"
Date:
Subject: SQLite (was: RE: Reliability of Windows versions 8.3 or 8.4)