Make libpq_gettext save and restore errno in a Windows-compatible way. Also, back-patch fix into back branches.
Make libpq_gettext save and restore errno in a Windows-compatible way.
Also, back-patch fix into back branches.

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