This patch cleans up some of the code in src/util/adt/formatting.c, fixes a few minor bugs (typos, potential buffer overruns, etc.), and fixes some spelling/grammar mistakes.
This patch cleans up some of the code in src/util/adt/formatting.c,
fixes a few minor bugs (typos, potential buffer overruns, etc.), and
fixes some spelling/grammar mistakes.

Neil Conway

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