Second try at making examine_variable and friends behave sanely in cases with binary-compatible relabeling.  My first try was implicitly assuming that all operators scalarineqsel is used for have binary- compatible datatypes on both sides ... which is very wrong of course. Per report from Michael Fuhr.
Second try at making examine_variable and friends behave sanely in
cases with binary-compatible relabeling.  My first try was implicitly
assuming that all operators scalarineqsel is used for have binary-
compatible datatypes on both sides ... which is very wrong of course.
Per report from Michael Fuhr.

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