Skip site navigation (1) Skip section navigation (2)

Problem with DirectFunctionCall3(array_in,...)

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 (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

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

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



pgsql-novice by date

Next:From: John DeSoiDate: 2005-04-28 12:18:19
Subject: Re: temp tables
Previous:From: Volkan YAZICIDate: 2005-04-28 10:52:29
Subject: Re: file oids

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group