Re: Persistence problem
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Persistence problem |
| Дата | |
| Msg-id | 20100512174526.GA4554@svana.org обсуждение исходный текст |
| Ответ на | Re: Persistence problem ("I. B." <i.bre@live.com>) |
| Ответы |
Re: Persistence problem
Re: Persistence problem |
| Список | 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
Вложения
В списке pgsql-general по дате отправления: