This is a patch to pg_dump which fixes varchar and char printing in the case where the attribute length is variable (stored as -1).  Previously, you'd get output that looked like:
This is a patch to pg_dump which fixes varchar and char printing in the
case where the attribute length is variable (stored as -1).  Previously,
you'd get output that looked like:

CREATE TABLE foo (bar varchar(-1));

Monitor and psql don't like this at all :).  Here is a fix:


Submitted by: Adam Sussman <myddryn@vidya.com>

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