Avoid unnecessary palloc overhead in _bt_first().  The temporary scankeys arrays that it needs can never have more than INDEX_MAX_KEYS entries, so it's reasonable to just allocate them as fixed-size local arrays, and save the cost of palloc/pfree.  Not a huge savings, but a cycle saved is a cycle earned ...
Avoid unnecessary palloc overhead in _bt_first().  The temporary
scankeys arrays that it needs can never have more than INDEX_MAX_KEYS
entries, so it's reasonable to just allocate them as fixed-size local
arrays, and save the cost of palloc/pfree.  Not a huge savings, but
a cycle saved is a cycle earned ...

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