Add some code to ensure that we don't lose communication sync due to an oversize message, per suggestion from Oliver Jowett.  I'm a bit dubious that this is a real problem, since the client likely doesn't have any more space available than the server, but it's not hard to make it behave according to the protocol intention.
Add some code to ensure that we don't lose communication sync due to
an oversize message, per suggestion from Oliver Jowett.  I'm a bit
dubious that this is a real problem, since the client likely doesn't
have any more space available than the server, but it's not hard to
make it behave according to the protocol intention.

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