Optimize PL/Perl function argument passing [PATCH]

Tim Bunce <tim.bunce@pobox.com>

From: Tim Bunce <Tim.Bunce@pobox.com>
To: pgsql-hackers@postgresql.org
Cc: Tim Bunce <Tim.Bunce@pobox.com>
Date: 2010-12-07T14:24:17Z
Lists: pgsql-hackers

Attachments

Changes:

    Sets the local $_TD via C instead of passing an extra argument.
    So functions no longer start with "our $_TD; local $_TD = shift;"

    Pre-extend stack for trigger arguments for slight performance gain.

Passes installcheck.

Tim.