problem with floats

From: Alex Carobus <acarobus(at)atl(dot)lmco(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: problem with floats
Date: 1998-06-23 19:54:39
Message-ID: 199806231954.PAA15842@kearsarge.ATL.LMCO.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Tong 1998-06-23 20:27:23 Re: [GENERAL] problem with floats
Previous Message Peter Mount 1998-06-23 18:21:59 Re: [GENERAL] datatype questions