Fix binary_oper_exact() so that the heuristic 'an unknown literal on one side of a binary operator is probably supposed to be the same type as the other operand' will be applied for domain types.  This worked in 7.3 but was broken in 7.4 due to code rearrangements.  Mea culpa.
Fix binary_oper_exact() so that the heuristic 'an unknown literal on
one side of a binary operator is probably supposed to be the same type
as the other operand' will be applied for domain types.  This worked
in 7.3 but was broken in 7.4 due to code rearrangements.  Mea culpa.

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