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