patternsel() was improperly stripping RelabelType from the derived expressions it constructed, causing scalarineqsel to become confused if the underlying variable was of a domain type.  Per report from Kevin Grittner.
patternsel() was improperly stripping RelabelType from the derived
expressions it constructed, causing scalarineqsel to become confused
if the underlying variable was of a domain type.  Per report from
Kevin Grittner.

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