Troubles with PL/Perl in PgSQL

From: Vladimir D Belousov <pg-maillist(at)klarnet(dot)ru>
To: pgsql-novice(at)postgresql(dot)org
Subject: Troubles with PL/Perl in PgSQL
Date: 2005-07-27 14:48:35
Message-ID: 42E79EC3.6040407@klarnet.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hallo!

I'm new in PgSQL and I try to migrate from InterBase (Firebird) to PgSQL.

I have a trouble with call ANY plperl function.
I have the very simple function:
---------------------

CREATE FUNCTION myint(integer) RETURNS integer AS $$
my $result = $_[0];
return $result;
$$ LANGUAGE plperl;
---------------------

And when I try to call this function, I got the error:
---------------------
$ psql test
Welcome to psql 8.0.3, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

test=# select * from myint(5);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!>
---------------------
From the /var/log/messages
Jul 27 18:17:24 ibserver postgres[57180]: [5-1] FATAL: the database
system is in recovery mode

I use FreeBSD 5.4 with PostgreSQL 8.0.3.
PgSQL was builded from sources with --with-perl option. Other options
have defaults values.

Thanks for any replies!

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A Gilmore 2005-07-27 18:18:26 Index help
Previous Message Terry Lee Tucker 2005-07-27 11:13:53 Re: backend triggers communication with front-end