Make CREATE DATABASE safe against losing whole files by fsyncing the directory and not just the individual files.
Make CREATE DATABASE safe against losing whole files by fsyncing the
directory and not just the individual files.

Back-patch to 8.1 -- before that we just called "cp -r" and never
fsynced anything anyways.

adam8157/gpdb,lintzc/gpdb,50wu/gpdb,zaksoup/gpdb,adam8157/gpdb,Chibin/gpdb,50wu/gpdb,xuegang/gpdb,chrishajas/gpdb,CraigHarris/gpdb,edespino/gpdb,kaknikhil/gpdb,edespino/gpdb,yuanzhao/gpdb,xinzweb/gpdb,Chibin/gpdb,royc1/gpdb,50wu/gpdb,Quikling/gpdb,xuegang/gpdb,jmcatamney/gpdb,lintzc/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,janebeckman/gpdb,0x0FFF/gpdb,royc1/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,lintzc/gpdb,rvs/gpdb,janebeckman/gpdb,lisakowen/gpdb,Chibin/gpdb,kaknikhil/gpdb,xuegang/gpdb,xinzweb/gpdb,xinzweb/gpdb,Quikling/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,royc1/gpdb,adam8157/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,kaknikhil/gpdb,ahachete/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,xinzweb/gpdb,ahachete/gpdb,xinzweb/gpdb,rvs/gpdb,chrishajas/gpdb,yuanzhao/gpdb,rvs/gpdb,Chibin/gpdb,rvs/gpdb,rvs/gpdb,yuanzhao/gpdb,Quikling/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,adam8157/gpdb,kaknikhil/gpdb,xuegang/gpdb,0x0FFF/gpdb,Chibin/gpdb,zaksoup/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,Chibin/gpdb,lisakowen/gpdb,lintzc/gpdb,cjcjameson/gpdb,lintzc/gpdb,ashwinstar/gpdb,zaksoup/gpdb,Chibin/gpdb,janebeckman/gpdb,lisakowen/gpdb,ahachete/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,royc1/gpdb,janebeckman/gpdb,50wu/gpdb,ashwinstar/gpdb,xuegang/gpdb,cjcjameson/gpdb,janebeckman/gpdb,50wu/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,edespino/gpdb,ahachete/gpdb,cjcjameson/gpdb,Chibin/gpdb,rvs/gpdb,CraigHarris/gpdb,royc1/gpdb,zaksoup/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,lisakowen/gpdb,edespino/gpdb,janebeckman/gpdb,lisakowen/gpdb,lisakowen/gpdb,lintzc/gpdb,edespino/gpdb,zaksoup/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,lintzc/gpdb,janebeckman/gpdb,chrishajas/gpdb,xinzweb/gpdb,chrishajas/gpdb,rvs/gpdb,xinzweb/gpdb,Quikling/gpdb,chrishajas/gpdb,rvs/gpdb,yuanzhao/gpdb,rvs/gpdb,edespino/gpdb,lisakowen/gpdb,edespino/gpdb,ahachete/gpdb,Quikling/gpdb,ashwinstar/gpdb,chrishajas/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,royc1/gpdb,0x0FFF/gpdb,edespino/gpdb,Chibin/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,ahachete/gpdb,0x0FFF/gpdb,lintzc/gpdb,rvs/gpdb,Quikling/gpdb,zaksoup/gpdb,Quikling/gpdb,chrishajas/gpdb,xuegang/gpdb,xuegang/gpdb,xuegang/gpdb,royc1/gpdb,janebeckman/gpdb,ahachete/gpdb,edespino/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,lisakowen/gpdb,xuegang/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,janebeckman/gpdb,royc1/gpdb,Quikling/gpdb,cjcjameson/gpdb,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,Chibin/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,chrishajas/gpdb,ashwinstar/gpdb,50wu/gpdb,janebeckman/gpdb,zaksoup/gpdb,ahachete/gpdb,lintzc/gpdb,edespino/gpdb,kaknikhil/gpdb,adam8157/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,50wu/gpdb,Quikling/gpdb,CraigHarris/gpdb,adam8157/gpdb,Quikling/gpdb,jmcatamney/gpdb,zaksoup/gpdb,xinzweb/gpdb