Re: [GENERAL] Persistence problem

2010-05-15 Thread I. B.
Thanks a lot for the patience and help. It worked. Ivan > To: i@live.com > CC: klep...@svana.org; dal...@solfertje.student.utwente.nl; > pgsql-general@postgresql.org > Subject: Re: [GENERAL] Persistence problem > Date: Fri, 14 May 2010 18:34:14 -0400 > From: t...@sss

Re: [GENERAL] Persistence problem

2010-05-14 Thread I. B.
th result and result->units... I just don't know how I should do it. :-/ I hope you understand the problem better now. Thanks, Ivan > To: i@live.com > CC: klep...@svana.org; dal...@solfertje.student.utwente.nl; > pgsql-general@postgresql.org > Subject: Re: [GENERAL] Persi

Re: [GENERAL] Persistence problem

2010-05-14 Thread I. B.
ERAL] Persistence problem > Date: Thu, 13 May 2010 15:08:58 -0400 > From: t...@sss.pgh.pa.us > > "I. B." writes: > > When I do this: > > realResult = (mPoint *)palloc(result->length); > > memcpy(realResult, result, result->length); > >

Re: [GENERAL] Persistence problem

2010-05-14 Thread I. B.
gt; Date: Thu, 13 May 2010 15:08:58 -0400 > From: t...@sss.pgh.pa.us > > "I. B." writes: > > When I do this: > > realResult = (mPoint *)palloc(result->length); > > memcpy(realResult, result, result->length); > > I get a right result in the

Re: [GENERAL] Persistence problem

2010-05-13 Thread I. B.
xplanation? Or someone has an idea? Thank you very much. Ivan > Date: Wed, 12 May 2010 19:45:26 +0200 > From: klep...@svana.org > To: i@live.com > CC: dal...@solfertje.student.utwente.nl; pgsql-general@postgresql.org > Subject: Re: [GENERAL] Persistence problem > > On Wed

Re: [GENERAL] Persistence problem

2010-05-13 Thread I. B.
very much. Ivan > Date: Wed, 12 May 2010 19:45:26 +0200 > From: klep...@svana.org > To: i@live.com > CC: dal...@solfertje.student.utwente.nl; pgsql-general@postgresql.org > Subject: Re: [GENERAL] Persistence problem > > On Wed, May 12, 2010 at 07:12:10PM +0200, I. B.

Re: [GENERAL] Persistence problem

2010-05-13 Thread I. B.
ep...@svana.org > To: i@live.com > CC: dal...@solfertje.student.utwente.nl; pgsql-general@postgresql.org > Subject: Re: [GENERAL] Persistence problem > > On Thu, May 13, 2010 at 12:04:56PM +0200, I. B. wrote: > > > > > > I'll try to explain with as less c

Re: [GENERAL] Persistence problem

2010-05-12 Thread I. B.
didn't help. Is that enough? > Subject: Re: [GENERAL] Persistence problem > From: dal...@solfertje.student.utwente.nl > Date: Wed, 12 May 2010 19:05:36 +0200 > CC: pgsql-general@postgresql.org > To: i@live.com > > On 12 May 2010, at 18:08, I. B. wrote: > > &g

[GENERAL] Persistence problem

2010-05-12 Thread I. B.
Hello. I have a problem. I've created several types and functions in C language and implemented them successfully. Or at least I thought so... When I insert, select, update data, everything works fine, but in that session only. As soon as I close psql and start it agan, the data is corrupted.

[GENERAL] Returning a char from a C-language function

2010-04-21 Thread I. B.
I have a small problem when trying to make a C-language function to return one character. The code is very simple and that's what's making it so strange. Datum val_ibool(PG_FUNCTION_ARGS) { iBool *input = (iBool *) PG_GETARG_POINTER(0); PG_RETURN_CHAR(input->value); } input is a struct