Fix performance problem in fireRIRonSubselect: with nested subqueries, fireRIRonSubselect was invoked twice at each subselect, leading to an exponential amount of wasted effort.
Fix performance problem in fireRIRonSubselect: with nested subqueries,
fireRIRonSubselect was invoked twice at each subselect, leading to an
exponential amount of wasted effort.

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