Change:
Change:

#define TAPETEMP                "pg_btsortXXXXXX"

to:

#define TAPETEMP                "pg_btsortXXXXXXX"

For some reason, under FreeBSD, it appears that the mktemp() value needs the
extra 'X' to improve/ensure uniqueness

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