Change ILIKE to invoke lower() and then do plain LIKE comparison when working in a multibyte encoding.  This fixes the problems exhibited in bug #1931 and other reports of ILIKE misbehavior in UTF8 encoding. It's a pretty grotty solution though --- should rethink how to do it after we install better locale support, someday.
Change ILIKE to invoke lower() and then do plain LIKE comparison when
working in a multibyte encoding.  This fixes the problems exhibited in
bug #1931 and other reports of ILIKE misbehavior in UTF8 encoding.
It's a pretty grotty solution though --- should rethink how to do it
after we install better locale support, someday.

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