]> granicus.if.org Git - postgresql/commit
Set up PLPerl trigger data using C code instead of Perl code.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 1 Feb 2011 14:43:25 +0000 (09:43 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 1 Feb 2011 14:43:25 +0000 (09:43 -0500)
commitef19dc6d39dd2490ff61489da55d95d6941140bf
treee4d159bee96e29e7bd2f7447eab459008ee1300f
parent5273f2143416f6340f6ee876facfa6f7a87453a0
Set up PLPerl trigger data using C code instead of Perl code.

This is an efficiency change, and means we now no longer have to run
"out $_TD; local $_TD = shift;", which was especially pointless in the case of
non-trigger functions where the passed value was always undef anyway.

A tiny open issue is whether we should get rid of the $prolog argument of
mkfunc, and the corresponding pushed value, which is now just a constant "false".

Tim Bunce, reviewed by Alex Hunsaker.
src/pl/plperl/plperl.c