From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Konstantinos Agouros <elwood(at)agouros(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: using a plpgsql-function and strange behaviour |
Date: | 2001-01-27 20:43:07 |
Message-ID: | 22831.980628187@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Konstantinos Agouros <elwood(at)agouros(dot)de> writes:
> 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.
Odd. It works fine for me on 7.0.2:
play=> select add_one(1);
add_one
---------
2
(1 row)
Something broken about your installation, I think, but it's hard
to tell what. Did anything show up in the postmaster log? Is there
a corefile you can get a backtrace from?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2001-01-27 22:23:16 | Re: How do I solve this efficiently? |
Previous Message | Konstantinos Agouros | 2001-01-27 19:53:03 | using a plpgsql-function and strange behaviour |