problem with floats - Mailing list pgsql-general

From Alex Carobus
Subject problem with floats
Date
Msg-id 199806231954.PAA15842@kearsarge.ATL.LMCO.COM
Whole thread Raw
Responses Re: [GENERAL] problem with floats  (Bruce Tong <zztong@laxmi.ev.net>)
List pgsql-general
I was trying to use some c code to return floats to postgres but I keep getting
the following error :

template1=> select oner();
PQexec() -- Request was sent to backend, but backend closed the channel before
responding.  This probably means the backend terminated abnormally before or
while processing the request.

The function is :
...
float8 oner() {return(1.0);}
...

And is created :
drop function oner();
DROP

create function oner() returns float8
        as '/home/acarobus/postgres/f_los.so' language 'c';
CREATE

Does anyone know why this is happening?  thanks for any help.

-Alex


pgsql-general by date:

Previous
From: Peter Mount
Date:
Subject: Re: [GENERAL] datatype questions
Next
From: Bruce Tong
Date:
Subject: Re: [GENERAL] problem with floats