Adjust mkdir_p to do stat() before trying mkdir().  Avoids problems on Solaris and should be a little faster anyway, since in most scenarios all but perhaps the last path component will already exist.
Adjust mkdir_p to do stat() before trying mkdir().  Avoids problems on
Solaris and should be a little faster anyway, since in most scenarios
all but perhaps the last path component will already exist.

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