Add missing correction of sublevelsup when pulling up a subquery. Fixes problem with cases like SELECT * FROM foo t WHERE NOT EXISTS (SELECT remoteid FROM (SELECT f1 as remoteid FROM foo WHERE f1 = t.f1) AS t1)
Add missing correction of sublevelsup when pulling up a subquery.
Fixes problem with cases like
SELECT * FROM foo t WHERE NOT EXISTS (SELECT remoteid FROM
(SELECT f1 as remoteid FROM foo WHERE f1 = t.f1) AS t1)

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