]> granicus.if.org Git - postgresql/commit
Keep plperl's current_call_data record on the stack, instead of palloc'ing.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Sep 2012 17:44:20 +0000 (13:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Sep 2012 17:44:20 +0000 (13:44 -0400)
commit9afc6481117d2dd936e752da0424a2b6b05f6459
tree66e325583bc8dc36a00197fe89047ee2670ce18b
parenta20993608a65b9896b4c05cb7061bc60d6f1840a
Keep plperl's current_call_data record on the stack, instead of palloc'ing.

This at least saves some palloc overhead, and should furthermore reduce
the risk of anything going wrong, eg somebody resetting the context the
current_call_data record was in.
src/pl/plperl/plperl.c