Resetting the XLOG can't include rewinding it to logical position zero, because we need page LSNs stored in the main database to be less than the current XLOG position.  Hence, generate the new XLOG segment at last old segment number plus one.
Resetting the XLOG can't include rewinding it to logical position zero,
because we need page LSNs stored in the main database to be less than
the current XLOG position.  Hence, generate the new XLOG segment at last
old segment number plus one.

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