PL/Perl function signatures

From: Luca Ferrari <fluca1978(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: PL/Perl function signatures
Date: 2023-08-28 07:53:33
Message-ID: CAKoxK+45HJLTTPBdWi1BrMASYPh5WfFD9RYRdPcX2FKqShZEGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
is there any way to exploit sub signatures in PL/Perl?
The following is not working, I suspect it is not possible due to the
way PL/Perl compiles the code.

testdb=# create or replace function f( a int )
returns text
as $$
use feature 'signatures';

elog( INFO, "Perl version $^V" );
elog(INFO, "A = $a" );
return "A=$a";
$$
language plperlu;

testdb=# select f( 10 );
INFO: Perl version v5.32.1
INFO: A =
f
----
A=
(1 row)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Durumdara 2023-08-28 08:22:46 Re: Role for just read the data + avoid CREATE / ALTER / DROP
Previous Message Luca Ferrari 2023-08-28 07:42:37 Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly