| From: | Jessica Ditt <jessica(dot)ditt(at)web(dot)de> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Problem with DirectFunctionCall3(array_in,...) |
| Date: | 2005-04-28 12:11:29 |
| Message-ID: | 1114690289.4646.24.camel@localhost.localdomain |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Hi!
At the moment I'm trying to create an own datatype "timeseries", which
should contain among others an array of float8 values.
As far as I know, float8 is a base type of postgres and therefore I
shouldn't need to create an own array-type.
In my own C-function "timeseries_in()" I would like to use "array_in()"
implemented in arrayfuncs.c. To insert a timestamp with timezone, I'm
using
DirectFunctionCall3(timestamptz_in, CStringGetDatum(zeitstempel),
ObjectIdGetDatum(InvalidOid), Int32GetDatum(-1));
and it works fine... Trying the same with
DirectFunctionCall3(array_in, CStringGetDatum(arraystring),
ObjectIdGetDatum(20), Int32GetDatum(-1));
unfortunately smashes my postmaster...
Having done a lot of research, I can't spot the mistake. Does anyone
know the problem or have a workaround for me?
Please tell me, if you want me to supply my source code or anything
else...
MfG
Jessica
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John DeSoi | 2005-04-28 12:18:19 | Re: temp tables |
| Previous Message | Volkan YAZICI | 2005-04-28 10:52:29 | Re: file oids |