Fix critical error noticed by Massimo: copy.c used to have a special hack to ensure it would close its output file even after failure due to elog(ERROR) partway through the copy.  This is now unnecessary because fd.c takes care of cleaning up open files at transaction abort; worse, after fd.c closed the file copy.c would try to do so *again* at the start of the next COPY command.  This would result in havoc in most implementations of stdio library.
Fix critical error noticed by Massimo: copy.c used to have a
special hack to ensure it would close its output file even after failure
due to elog(ERROR) partway through the copy.  This is now unnecessary
because fd.c takes care of cleaning up open files at transaction abort;
worse, after fd.c closed the file copy.c would try to do so *again* at
the start of the next COPY command.  This would result in havoc in most
implementations of stdio library.

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