Try to instill some sanity in plperl's function result processing. Get rid of static variables for SETOF result, don't crash when called from non-FROM context, eliminate dead code, etc.
Try to instill some sanity in plperl's function result processing.
Get rid of static variables for SETOF result, don't crash when called
from non-FROM context, eliminate dead code, etc.

greenplum-db/gpdb,edespino/gpdb,cjcjameson/gpdb,lisakowen/gpdb,xinzweb/gpdb,xinzweb/gpdb,0x0FFF/gpdb,Chibin/gpdb,Quikling/gpdb,foyzur/gpdb,CraigHarris/gpdb,zaksoup/gpdb,jmcatamney/gpdb,chrishajas/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,rvs/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,yuanzhao/gpdb,lintzc/gpdb,foyzur/gpdb,Quikling/gpdb,janebeckman/gpdb,yuanzhao/gpdb,ahachete/gpdb,ovr/postgres-xl,royc1/gpdb,randomtask1155/gpdb,kmjungersen/PostgresXL,ovr/postgres-xl,50wu/gpdb,50wu/gpdb,snaga/postgres-xl,rvs/gpdb,janebeckman/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,Chibin/gpdb,royc1/gpdb,cjcjameson/gpdb,rubikloud/gpdb,edespino/gpdb,techdragon/Postgres-XL,rubikloud/gpdb,cjcjameson/gpdb,atris/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,foyzur/gpdb,atris/gpdb,cjcjameson/gpdb,foyzur/gpdb,zaksoup/gpdb,janebeckman/gpdb,rvs/gpdb,techdragon/Postgres-XL,50wu/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,zeroae/postgres-xl,tangp3/gpdb,lisakowen/gpdb,Quikling/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,cjcjameson/gpdb,Quikling/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,chrishajas/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ahachete/gpdb,xuegang/gpdb,xuegang/gpdb,ovr/postgres-xl,greenplum-db/gpdb,yuanzhao/gpdb,postmind-net/postgres-xl,lintzc/gpdb,tangp3/gpdb,oberstet/postgres-xl,foyzur/gpdb,edespino/gpdb,cjcjameson/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,50wu/gpdb,pavanvd/postgres-xl,rubikloud/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,tpostgres-projects/tPostgres,kmjungersen/PostgresXL,0x0FFF/gpdb,yazun/postgres-xl,rubikloud/gpdb,zeroae/postgres-xl,foyzur/gpdb,randomtask1155/gpdb,arcivanov/postgres-xl,lintzc/gpdb,postmind-net/postgres-xl,rvs/gpdb,kaknikhil/gpdb,rvs/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,ahachete/gpdb,Quikling/gpdb,Chibin/gpdb,snaga/postgres-xl,janebeckman/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,xuegang/gpdb,snaga/postgres-xl,tpostgres-projects/tPostgres,xinzweb/gpdb,yuanzhao/gpdb,xinzweb/gpdb,ashwinstar/gpdb,lisakowen/gpdb,CraigHarris/gpdb,50wu/gpdb,ahachete/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,janebeckman/gpdb,chrishajas/gpdb,rubikloud/gpdb,techdragon/Postgres-XL,kaknikhil/gpdb,zeroae/postgres-xl,tangp3/gpdb,zeroae/postgres-xl,ahachete/gpdb,kmjungersen/PostgresXL,Postgres-XL/Postgres-XL,rvs/gpdb,lintzc/gpdb,adam8157/gpdb,royc1/gpdb,chrishajas/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,edespino/gpdb,yazun/postgres-xl,50wu/gpdb,xuegang/gpdb,ashwinstar/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,lintzc/gpdb,xuegang/gpdb,cjcjameson/gpdb,foyzur/gpdb,lisakowen/gpdb,atris/gpdb,oberstet/postgres-xl,ahachete/gpdb,atris/gpdb,Chibin/gpdb,chrishajas/gpdb,royc1/gpdb,chrishajas/gpdb,chrishajas/gpdb,tangp3/gpdb,Quikling/gpdb,janebeckman/gpdb,janebeckman/gpdb,greenplum-db/gpdb,lintzc/gpdb,zaksoup/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,zaksoup/gpdb,zaksoup/gpdb,lisakowen/gpdb,CraigHarris/gpdb,atris/gpdb,Quikling/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,yazun/postgres-xl,CraigHarris/gpdb,janebeckman/gpdb,adam8157/gpdb,xinzweb/gpdb,rubikloud/gpdb,Chibin/gpdb,kaknikhil/gpdb,Chibin/gpdb,Chibin/gpdb,randomtask1155/gpdb,oberstet/postgres-xl,zaksoup/gpdb,tangp3/gpdb,rvs/gpdb,royc1/gpdb,cjcjameson/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,edespino/gpdb,edespino/gpdb,ashwinstar/gpdb,ovr/postgres-xl,lpetrov-pivotal/gpdb,kaknikhil/gpdb,Quikling/gpdb,rvs/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,rvs/gpdb,ahachete/gpdb,jmcatamney/gpdb,adam8157/gpdb,tangp3/gpdb,yazun/postgres-xl,chrishajas/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,snaga/postgres-xl,0x0FFF/gpdb,arcivanov/postgres-xl,lpetrov-pivotal/gpdb,lintzc/gpdb,Chibin/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,50wu/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,ahachete/gpdb,snaga/postgres-xl,ashwinstar/gpdb,Quikling/gpdb,kaknikhil/gpdb,50wu/gpdb,oberstet/postgres-xl,lpetrov-pivotal/gpdb,edespino/gpdb,tangp3/gpdb,ovr/postgres-xl,Quikling/gpdb,lintzc/gpdb,edespino/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,atris/gpdb,rvs/gpdb,lintzc/gpdb,Postgres-XL/Postgres-XL,zaksoup/gpdb,0x0FFF/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,zaksoup/gpdb,postmind-net/postgres-xl,tangp3/gpdb,CraigHarris/gpdb,xuegang/gpdb,adam8157/gpdb,royc1/gpdb,kaknikhil/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,CraigHarris/gpdb,xuegang/gpdb,xinzweb/gpdb,rubikloud/gpdb,adam8157/gpdb,yuanzhao/gpdb,Chibin/gpdb,kaknikhil/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,rubikloud/gpdb,pavanvd/postgres-xl,xuegang/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,edespino/gpdb,zeroae/postgres-xl,lpetrov-pivotal/gpdb,jmcatamney/gpdb,atris/gpdb,royc1/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,xuegang/gpdb,arcivanov/postgres-xl