Fix order of operations within SendQuery() so that the time spent in data transfer during COPY is included in the \timing display.  Also avoid portability problems if tv_usec is unsigned on some platform.
Fix order of operations within SendQuery() so that the time spent in
data transfer during COPY is included in the \timing display.  Also
avoid portability problems if tv_usec is unsigned on some platform.

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