Fix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initial value of 'start' could be past the end of the page, if the page was split by some concurrent inserting process since we visited it.  In this situation the code could look at bogus entries and possibly find a match (since after all those entries still contain what they had before the split).  This would lead to 'specified item offset is too large' followed by 'PANIC: failed to add item to the page', as reported by Joe Conway for scenarios involving heavy concurrent insertion activity.
Fix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initial
value of 'start' could be past the end of the page, if the page was
split by some concurrent inserting process since we visited it.  In
this situation the code could look at bogus entries and possibly find
a match (since after all those entries still contain what they had
before the split).  This would lead to 'specified item offset is too large'
followed by 'PANIC: failed to add item to the page', as reported by Joe
Conway for scenarios involving heavy concurrent insertion activity.

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