Re: Multi calendar system for pgsql - Mailing list pgsql-hackers

From Mohsen Alimomeni
Subject Re: Multi calendar system for pgsql
Date
Msg-id 4cb38c430902220528g59ca6cfem86288683c069a783@mail.gmail.com
Whole thread Raw
In response to Re: Multi calendar system for pgsql  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: Multi calendar system for pgsql  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Hi,
To implement my local calendar, I tried adding a new type (pdate) to pgsql as an extension. 
At first I used a struct of size 6, and I returned a pointer to it in pdate_in with no problem. Now I changed the type to int32, returning PG_RETURN_INT32. I removed all palloc calls. but the server crashes with segmentation fault before returning in pdate_in.
I changed PG_RETURN_INT32 to PG_RETURN_POINTER, but the problem isn't solved.
I checked everything, read chapter 34 of docs, but I couldn't solve the problem. I attached my files, if anyone can take a look at them.

thanks,
Mohsen Alimomeni

Attachment

pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Updates of SE-PostgreSQL 8.4devel patches (r1590)
Next
From: Gregory Stark
Date:
Subject: Re: Multi calendar system for pgsql