aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2010-01-26 23:11:56 +0000
committerAndrew Dunstan <andrew@dunslane.net>2010-01-26 23:11:56 +0000
commit1a7c2f9dea3682987a741f559ecf5e38b4ba5432 (patch)
treee75895535794f2a1fcd56bf177a82e850d1f85a9 /src/backend/parser/parse_utilcmd.c
parentd879697cd291a31c635edf17c4b8c170ac40ffc1 (diff)
downloadpostgresql-1a7c2f9dea3682987a741f559ecf5e38b4ba5432.tar.gz
postgresql-1a7c2f9dea3682987a741f559ecf5e38b4ba5432.zip
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.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions