git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d879697) | patch
Various small improvements and cleanups for PL/Perl.
2010年1月26日 23:11:56 +0000 (23:11 +0000)
2010年1月26日 23:11:56 +0000 (23:11 +0000)
commit 1a7c2f9dea3682987a741f559ecf5e38b4ba5432
Various small improvements and cleanups for PL/Perl.

- Allow (ineffective) use of 'require' in plperl
If the required module is not already loaded then it dies.
So "use strict;" now works in plperl.

- Pre-load the feature module if perl >= 5.10.
So "use feature :5.10;" now works in plperl.

- Stored procedure subs are now given names.
The names are not visible in ordinary use, but they make
tools like Devel::NYTProf and Devel::Cover much more useful.

- Simplified and generalized the subroutine creation code.
Now one code path for generating sub source code, not four.
Can generate multiple 'use' statements with specific imports
(which handles plperl.use_strict currently and can easily
be extended to handle a plperl.use_feature=':5.12' in future).

- Disallows use of Safe version 2.20 which is broken for PL/Perl.
http://rt.perl.org/rt3/Ticket/Display.html?id=72068

- Assorted minor optimizations by pre-growing data structures.

Patch from Tim Bunce, reviewed by Alex Hunsaker.
doc/src/sgml/plperl.sgml diff | blob | blame | history
src/pl/plperl/expected/plperl.out diff | blob | blame | history
src/pl/plperl/expected/plperl_plperlu.out diff | blob | blame | history
src/pl/plperl/plc_perlboot.pl diff | blob | blame | history
src/pl/plperl/plc_safe_bad.pl diff | blob | blame | history
src/pl/plperl/plc_safe_ok.pl diff | blob | blame | history
src/pl/plperl/plperl.c diff | blob | blame | history
src/pl/plperl/sql/plperl.sql diff | blob | blame | history
src/pl/plperl/sql/plperl_plperlu.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /