In the integer-datetimes case, date2timestamp and date2timestamptz need to check for overflow because the legal range of type date is actually wider than timestamp's.  Problem found by Neil Conway.
In the integer-datetimes case, date2timestamp and date2timestamptz need
to check for overflow because the legal range of type date is actually
wider than timestamp's.  Problem found by Neil Conway.

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