using a plpgsql-function and strange behaviour - Mailing list pgsql-general

From Konstantinos Agouros
Subject using a plpgsql-function and strange behaviour
Date
Msg-id 20010127205303.A3012@rumba.agouros.de
Whole thread Raw
Responses Re: using a plpgsql-function and strange behaviour
List pgsql-general
Hello,

today I tried the following on 7.0.2:

elwood=# CREATE FUNCTION add_one (int4) RETURNS int4 AS '
elwood'#     BEGIN
elwood'#         RETURN $1 + 1;
elwood'#     END;
elwood'# ' LANGUAGE 'plpgsql';
CREATE
elwood=# select add_one(1);

The result of this was:
pqReadData() -- backend closed the channel unexpectedly.
        This probably means the backend terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!# \q

The Backend actually died and restarted. Has someone an idea for this, or am
I using the function the wrong way?

Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres

pgsql-general by date:

Previous
From: "Tim Barnard"
Date:
Subject: Re: Too many open files! how do I fix on linux?
Next
From: Tom Lane
Date:
Subject: Re: using a plpgsql-function and strange behaviour