Clean up some bugs in oper_select_candidate(), notably the last loop which would return the *first* surviving-to-that-point candidate regardless of which one actually passed the test.  This was producing such curious results as 'oid % 2' getting translated to 'int2(oid) % 2'.
Clean up some bugs in oper_select_candidate(), notably the
last loop which would return the *first* surviving-to-that-point candidate
regardless of which one actually passed the test.  This was producing
such curious results as 'oid % 2' getting translated to 'int2(oid) % 2'.

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