| From: | Konstantinos Agouros <elwood(at)agouros(dot)de> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | using a plpgsql-function and strange behaviour |
| Date: | 2001-01-27 19:53:03 |
| Message-ID: | 20010127205303.A3012@rumba.agouros.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)agouros(dot)de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-01-27 20:43:07 | Re: using a plpgsql-function and strange behaviour |
| Previous Message | Tim Barnard | 2001-01-27 19:29:36 | Re: Too many open files! how do I fix on linux? |