Fix several places where fractional-second inputs were misprocessed in HAVE_INT64_TIMESTAMP cases, including two potential stack smashes when more than six fractional digits were supplied.  Per bug report from Philipp Reisner.
Fix several places where fractional-second inputs were misprocessed
in HAVE_INT64_TIMESTAMP cases, including two potential stack smashes
when more than six fractional digits were supplied.  Per bug report
from Philipp Reisner.

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