Re: PL/Perl function signatures

2023-08-29 Thread Luca Ferrari
On Mon, Aug 28, 2023 at 9:53 AM Luca Ferrari wrote: > > testdb=# create or replace function f( a int ) > returns text > as $$ > use feature 'signatures'; shame on me! Clearly this cannot work because at the 'use' stage the function is already running, so the signatures feature is evaluated in the

PL/Perl function signatures

2023-08-28 Thread Luca Ferrari
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(I