Bugfix - Range table entries that are unused after rewriting should not be marked inFromCl any longer. Otherwise the planner gets confused and joins over them where in fact it does not have to.
Bugfix - Range table entries that are unused after rewriting should
not be marked inFromCl any longer. Otherwise the planner gets confused
and joins over them where in fact it does not have to.

Adjust hasSubLinks now with a recursive lookup - could be wrong in
multi action rules because parse state isn't reset correctly and all
actions in the rule are marked hasSubLinks if one of them has.

Jan

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