Remove pstrdup() call from exec.c because DLLIMPORT flag on CurrentMemoryContext caused compile problems.
Remove pstrdup() call from exec.c because DLLIMPORT flag on
CurrentMemoryContext caused compile problems.

Recode to not make a copy of the PATH but copy parts out into MAXPGPATH
variables.

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