BUG #5277: plperl can't get args properly - Mailing list pgsql-bugs

From louis
Subject BUG #5277: plperl can't get args properly
Date
Msg-id 201001141106.o0EB6NR3075826@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5277: plperl can't get args properly  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #5277: plperl can't get args properly  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      5277
Logged by:          louis
Email address:      louis01010100@gmail.com
PostgreSQL version: 8.4.2
Operating system:   PostgreSQL 8.4.2 on x86_64-pc-linux-gnu, compiled by GCC
gcc-4.4.real (Ubuntu 4.4.1-4ubuntu8) 4.4.1, 64-bit
Description:        plperl can't get args properly
Details:

Arguments can't be passed to a plperl function

function definition:
====================
create or replace function foo(text) returns text as $$
   return $_[0];
$$ language plperl;


test:
=====
select foo('a');

result:
=======
INFO:
 foo
-----
(1 row)

pgsql-bugs by date:

Previous
From: "James Bellinger"
Date:
Subject: BUG #5276: pg_ctl reads data directory on -D instead of postgresql.conf directoryh
Next
From: Tom Lane
Date:
Subject: Re: BUG #5269: postgres backend terminates with SIGSEGV