release notes

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: release notes
Date: 2010-05-17 15:26:03
Message-ID: 4BF1600B.509@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Why do the release notes say this, under plperl:

* PL/Perl subroutines are now given names (Tim Bunce)
This is for the use of profiling and code coverage tools. DIDN'T
THEY HAVE NAMES BEFORE?

No they didn't, from perl's perspective, which is what this is about.
They had names from Postgres' POV, but those names were and are
invisible to perl. PL/Perl functions are (references to) anonymous
subroutines. If you say in perl:

my $foo = sub { $bar = 1; };

the subroutine has no name. The only thing that has a name is the
reference to it, which is quite a different thing. PL/Perl functions are
created using this sort of mechanism. The change that has been made is
to decorate them with names that can be used by profilers etc., although
the names can't be used to call them directly, IIRC.

If whoever put this in the release notes had bothered to ask I am sure
we would have been happy to explain.

cheers

andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-05-17 15:34:37 Re: release notes
Previous Message Robert Haas 2010-05-17 13:20:11 Re: Stefan's bug (was: max_standby_delay considered harmful)