Fix bug introduced into indexable_outerrelids() by an ill-considered "optimization".  When we find a potentially useful joinclause, we have to add all its other required_relids to the result, not only the other clause_relids.  They are different in the case of a joinclause whose applicability has to be postponed due to outer join.  We have to include the extra rels because otherwise, after best_inner_indexscan masks the join rels with index_outer_relids, it will always fail to find the joinclause as applicable.  Per report from Husam Tomeh.
Fix bug introduced into indexable_outerrelids() by an ill-considered
"optimization".  When we find a potentially useful joinclause, we
have to add all its other required_relids to the result, not only the
other clause_relids.  They are different in the case of a joinclause
whose applicability has to be postponed due to outer join.  We have
to include the extra rels because otherwise, after best_inner_indexscan
masks the join rels with index_outer_relids, it will always fail to
find the joinclause as applicable.  Per report from Husam Tomeh.

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