Fix oversight in sizing of shared buffer lookup hashtable.  Because BufferAlloc tries to insert a new mapping entry before deleting the old one for a buffer, we have a transient need for more than NBuffers entries --- one more in 8.1, and as many as NUM_BUFFER_PARTITIONS more in CVS HEAD. In theory this could lead to an "out of shared memory" failure if shmem had already been completely claimed by the time the extra entries were needed.
Fix oversight in sizing of shared buffer lookup hashtable.  Because
BufferAlloc tries to insert a new mapping entry before deleting the old one
for a buffer, we have a transient need for more than NBuffers entries ---
one more in 8.1, and as many as NUM_BUFFER_PARTITIONS more in CVS HEAD.
In theory this could lead to an "out of shared memory" failure if shmem
had already been completely claimed by the time the extra entries were
needed.

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